MCPcopy
hub / github.com/grpc/grpc-go / NewTieredBufferPool

Function NewTieredBufferPool

mem/buffer_pool.go:77–79  ·  view source on GitHub ↗

NewTieredBufferPool returns a BufferPool implementation that uses multiple underlying pools of the given pool sizes.

(poolSizes ...int)

Source from the content-addressed store, hash-verified

75// NewTieredBufferPool returns a BufferPool implementation that uses multiple
76// underlying pools of the given pool sizes.
77func 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.

Callers 3

TestBufferPoolMethod · 0.92
TestBufferPoolClearsMethod · 0.92

Calls 1

NewTieredBufferPoolFunction · 0.92

Tested by 3

TestBufferPoolMethod · 0.74
TestBufferPoolClearsMethod · 0.74