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

Method Put

tempodb/encoding/vparquet5/compactor.go:322–332  ·  view source on GitHub ↗
(row parquet.Row)

Source from the content-addressed store, hash-verified

320}
321
322func (r *rowPool) Put(row parquet.Row) {
323 if cap(row) != r.size {
324 // Dont' repool slices that weren't created by this pool.
325 return
326 }
327 // Clear before putting into the pool.
328 // This is important so that pool entries don't hang
329 // onto the underlying buffers.
330 clear(row)
331 r.pool.Put(row[:0]) //nolint:all //SA6002
332}
333
334// estimateProtoSizeFromParquetRow estimates the byte-length of the corresponding
335// trace in tempopb.Trace format. This method is unreasonably effective.

Callers 11

NextMethod · 0.45
putSpanFunction · 0.45
putSpansetFunction · 0.45
putEventFunction · 0.45
putLinkFunction · 0.45
CompactMethod · 0.45
BenchmarkDeconstructFunction · 0.45
TestRowPoolReleaseFunction · 0.45
IteratorMethod · 0.45
BenchmarkReadAllTracesFunction · 0.45
CreateBlockFunction · 0.45

Calls

no outgoing calls

Tested by 3

BenchmarkDeconstructFunction · 0.36
TestRowPoolReleaseFunction · 0.36
BenchmarkReadAllTracesFunction · 0.36