mirror of
https://github.com/soypat/lneto.git
synced 2026-09-03 13:29:02 +00:00
Reduce heap allocs 2 (#46)
* reduce heap allocations in tcp logging; omit use of AppendFloat which allocates a metric sh*tton * debugheaplog: better heap statistic logging * heap: use string for pcap.Frame.Protocol * add potential to eliminate Flags.String heap alloc, remove incorrect HEAP comments * add StackAsync.DebugErr and httpraw.SetBytes * many heap alloc reductions and replacement of bytes.Equal with internal.BytesEqual
This commit is contained in:
@@ -21,6 +21,7 @@ func (s *cbnode) Encapsulate(carrierData []byte, offsetToIP, offsetToFrame int)
|
||||
}
|
||||
|
||||
func (s *cbnode) Demux(carrierData []byte, frameOffset int) error {
|
||||
debugLog("cbnode:pre-demux")
|
||||
return s._demux(carrierData, frameOffset)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user