NewTieredBufferPool returns a BufferPool implementation that uses multiple underlying pools of the given pool sizes.
(poolSizes ...int)
| 75 | // NewTieredBufferPool returns a BufferPool implementation that uses multiple |
| 76 | // underlying pools of the given pool sizes. |
| 77 | func NewTieredBufferPool(poolSizes ...int) BufferPool { |
| 78 | return mem.NewTieredBufferPool(poolSizes...) |
| 79 | } |
| 80 | |
| 81 | // NewBinaryTieredBufferPool returns a BufferPool backed by multiple sub-pools. |
| 82 | // This structure enables O(1) lookup time for Get and Put operations. |