github.com/jxskiss/gopkg/v2@v2.14.9-0.20240514120614-899f3e7952b4/perf/bbp/README.md (about) 1 Package bbp provides efficient byte buffer pools with anti-memory-waste protection. 2 3 Byte buffers acquired from this package may be put back to the pool, but they do not need to; 4 if they are returned, they will be recycled and reused, otherwise they will be garbage 5 collected as usual. 6 7 The methods within this package and all `Pool` instances share the same 8 underlying sized byte slice pools. The byte buffers provided by this package 9 has a minimum limit of 64B and a maximum limit of 32MB, 10 byte slice with size not in the range will be allocated directly from Go runtime, 11 and won't be recycled for reuse.