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

Function init

pkg/tempopb/prealloc.go:10–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8var bytePool *Pool
9
10func init() {
11 bktSize := intFromEnv("PREALLOC_BKT_SIZE", 400)
12 numBuckets := intFromEnv("PREALLOC_NUM_BUCKETS", 250)
13 minBucket := intFromEnv("PREALLOC_MIN_BUCKET", 0)
14
15 bytePool = NewPool("ingester_prealloc", minBucket, numBuckets, bktSize)
16}
17
18// PreallocBytes is a (repeated bytes slices) which preallocs slices on Unmarshal.
19type PreallocBytes struct {

Callers

nothing calls this directly

Calls 2

intFromEnvFunction · 0.70
NewPoolFunction · 0.70

Tested by

no test coverage detected