MCPcopy
hub / github.com/grafana/tempo / syncIteratorPoolGet

Function syncIteratorPoolGet

pkg/parquetquery/iters.go:292–299  ·  view source on GitHub ↗
(capacity, length int)

Source from the content-addressed store, hash-verified

290}
291
292func syncIteratorPoolGet(capacity, length int) []pq.Value {
293 res := syncIteratorPool.Get().([]pq.Value)
294 if cap(res) < capacity {
295 res = make([]pq.Value, capacity)
296 }
297 res = res[:length]
298 return res
299}
300
301func syncIteratorPoolPut(b []pq.Value) {
302 for i := range b {

Callers 2

nextMethod · 0.85
nextMethod · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected