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
During encoding we've a few places where we allocate a new D for short period of time. Such allocations are harmless but we can get rid of them by allocating a D from sync.Pool.
As a result we should have zero-alloc encoding (in terms of D allocs, buffer grow or reflect is a separate topic).
Also: M.AsD() D should have an unexported version where we encode M into a given D.
The text was updated successfully, but these errors were encountered:
During encoding we've a few places where we allocate a new
D
for short period of time. Such allocations are harmless but we can get rid of them by allocating aD
fromsync.Pool
.As a result we should have zero-alloc encoding (in terms of
D
allocs, buffer grow or reflect is a separate topic).Also:
M.AsD() D
should have an unexported version where we encodeM
into a givenD
.The text was updated successfully, but these errors were encountered: