1. 29 Jun, 2021 1 commit
  2. 06 Oct, 2018 1 commit
    • 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
  3. 04 Oct, 2018 1 commit
  4. 21 Jan, 2018 1 commit
    • Steven Allen's avatar
      support large slices · deedd3bb
      Steven Allen authored
      They won't use the buffer pool but it doesn't hurt to be nice to the user by
      allocating such slices anyways.
      deedd3bb
  5. 20 Dec, 2017 2 commits
  6. 21 Nov, 2017 1 commit
    • Steven Allen's avatar
      make ByteSlicePool a *Pool, not a Pool. · 5ef65a03
      Steven Allen authored
      This way, copying it won't copy the underlying pool.
      
      Also, initialize it immediately instead of in an `init` function to ensure that
      it's fully initialized immediately.
      5ef65a03
  7. 19 Nov, 2017 1 commit
  8. 17 Nov, 2017 2 commits
  9. 13 Dec, 2014 1 commit
  10. 06 Dec, 2014 1 commit