Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
16
func
newSlicePool(pools int) *byteSlicePools {
17
sp := byteSlicePools{}
18
sp.init(pools)
19
return
&sp
20
}
21
22
func
(sp *byteSlicePools) init(pools int) {
23
sp.pools = make([]sync.Pool, pools)
Callers
4
TestFuzzyByteSlicePools
Function · 0.85
TestReturnSliceSmallerThanMin
Function · 0.85
timeseries.go
File · 0.85
timeseriesv2.go
File · 0.85
Calls
1
init
Method · 0.95
Tested by
2
TestFuzzyByteSlicePools
Function · 0.68
TestReturnSliceSmallerThanMin
Function · 0.68