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

Function newRowPool

tempodb/encoding/vparquet4/compactor.go:310–319  ·  view source on GitHub ↗
(defaultRowSize int)

Source from the content-addressed store, hash-verified

308}
309
310func newRowPool(defaultRowSize int) *rowPool {
311 return &rowPool{
312 size: defaultRowSize,
313 pool: sync.Pool{
314 New: func() any {
315 return make(parquet.Row, 0, defaultRowSize)
316 },
317 },
318 }
319}
320
321func (r *rowPool) Get() parquet.Row {
322 return r.pool.Get().(parquet.Row)

Callers 5

compactor.goFile · 0.70
BenchmarkDeconstructFunction · 0.70
wal_block.goFile · 0.70

Calls

no outgoing calls

Tested by 3

BenchmarkDeconstructFunction · 0.56