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
In #18 we tried to replace the cap check with slices.Grow but the combined metrics encoding was >20% slower and a lot of memory was touched per op. See #18 (comment)
Investigate what is happening.
The text was updated successfully, but these errors were encountered:
I believe this is because I forgot to reslice, i.e. s = s[:0] before slices.Grow, and that slices.Grow(s, n) guarantees it will accommodate an additional n elements.
In #18 we tried to replace the
cap
check withslices.Grow
but the combined metrics encoding was >20% slower and a lot of memory was touched per op. See #18 (comment)Investigate what is happening.
The text was updated successfully, but these errors were encountered: