()
| 8 | var bytePool *Pool |
| 9 | |
| 10 | func 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. |
| 19 | type PreallocBytes struct { |
nothing calls this directly
no test coverage detected