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

Function newRowPool

tempodb/encoding/vparquet5/compactor.go:307–316  ·  view source on GitHub ↗
(defaultRowSize int)

Source from the content-addressed store, hash-verified

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

Callers 7

compactor.goFile · 0.70
BenchmarkDeconstructFunction · 0.70
TestRowPoolReleaseFunction · 0.70
wal_block.goFile · 0.70
BenchmarkReadAllTracesFunction · 0.70

Calls

no outgoing calls

Tested by 5

BenchmarkDeconstructFunction · 0.56
TestRowPoolReleaseFunction · 0.56
BenchmarkReadAllTracesFunction · 0.56