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
On GC, the Pool is releasing too many items which I believe should be retained significantly longer.
The creation of said item (via New) is a time-consuming process for me so it's defeating the purpose of using the Pool to improve latency.
A sync.Pool is not meant to serve all purposes. If it is costly to create new items, it's often best to maintain your own free list rather than to use a sync.Pool.
On GC, the Pool is releasing too many items which I believe should be retained significantly longer.
The creation of said item (via
New
) is a time-consuming process for me so it's defeating the purpose of using the Pool to improve latency.This is a revisit of: #22950
It would be great if there was an option or a way for us to customize different strategies on when the Pool should release items.
The text was updated successfully, but these errors were encountered: