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

Function ReuseByteSlices

pkg/tempopb/prealloc.go:47–51  ·  view source on GitHub ↗

ReuseByteSlices puts the byte slice back into bytePool for reuse.

(buffs [][]byte)

Source from the content-addressed store, hash-verified

45
46// ReuseByteSlices puts the byte slice back into bytePool for reuse.
47func ReuseByteSlices(buffs [][]byte) {
48 for _, b := range buffs {
49 _ = bytePool.Put(b)
50 }
51}
52
53func intFromEnv(env string, defaultValue int) int {
54 // get the value from the environment

Callers 3

iterMethod · 0.92
pushBytesMethod · 0.92
DecodeMethod · 0.92

Calls 1

PutMethod · 0.45

Tested by

no test coverage detected