You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I am reading the source code correctly, then singleSegmentArena.Allocate allocates more memory than necessary. mem.go shows that nextAlloc is invoked with the length of data, but should be the capacity. Otherwise it is overallocating by cap(data)-len(data) bytes.
Not a big deal, just something that caught my eye.
The text was updated successfully, but these errors were encountered:
If I am reading the source code correctly, then
singleSegmentArena.Allocate
allocates more memory than necessary. mem.go shows thatnextAlloc
is invoked with the length ofdata
, but should be the capacity. Otherwise it is overallocating bycap(data)-len(data)
bytes.Not a big deal, just something that caught my eye.
The text was updated successfully, but these errors were encountered: