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

Function newRowPool

tempodb/encoding/vparquet3/compactor.go:289–297  ·  view source on GitHub ↗
(defaultRowSize int)

Source from the content-addressed store, hash-verified

287}
288
289func newRowPool(defaultRowSize int) *rowPool {
290 return &rowPool{
291 pool: sync.Pool{
292 New: func() any {
293 return make(parquet.Row, 0, defaultRowSize)
294 },
295 },
296 }
297}
298
299func (r *rowPool) Get() parquet.Row {
300 return r.pool.Get().(parquet.Row)

Callers 5

CompactMethod · 0.70
BenchmarkDeconstructFunction · 0.70
wal_block.goFile · 0.70

Calls

no outgoing calls

Tested by 3

BenchmarkDeconstructFunction · 0.56