pool pointers to pointers
So, creating interfaces *allocates*. That means `pool.Put([]byte)` allocates, that's obviously bad. This was, unfortunately, showing up in go-ipfs after switching to a pool-backed yamux. What's the solution to too many allocations? More object pools!
Showing
Please register or sign in to comment