MCPcopy Create free account
hub / github.com/cortexproject/cortex / newSlicePool

Function newSlicePool

pkg/cortexpb/slicesPool.go:16–20  ·  view source on GitHub ↗
(pools int)

Source from the content-addressed store, hash-verified

14}
15
16func newSlicePool(pools int) *byteSlicePools {
17 sp := byteSlicePools{}
18 sp.init(pools)
19 return &sp
20}
21
22func (sp *byteSlicePools) init(pools int) {
23 sp.pools = make([]sync.Pool, pools)

Callers 4

TestFuzzyByteSlicePoolsFunction · 0.85
timeseries.goFile · 0.85
timeseriesv2.goFile · 0.85

Calls 1

initMethod · 0.95

Tested by 2

TestFuzzyByteSlicePoolsFunction · 0.68