• Steven Allen's avatar
    pool pointers to pointers · c136f72a
    Steven Allen authored
    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!
    c136f72a
pool_test.go 3.37 KB