TieredBufferPool implements the BufferPool interface with multiple tiers of buffer pools for different sizes of buffers.
| 257 | // TieredBufferPool implements the BufferPool interface with multiple tiers of |
| 258 | // buffer pools for different sizes of buffers. |
| 259 | type TieredBufferPool struct { |
| 260 | sizedPools []*sizedBufferPool |
| 261 | fallbackPool SimpleBufferPool |
| 262 | } |
| 263 | |
| 264 | // NewTieredBufferPool returns a BufferPool implementation that uses multiple |
| 265 | // underlying pools of the given pool sizes. |
nothing calls this directly
no outgoing calls
no test coverage detected