Documentation
¶
Overview ¶
Package bytespool provides a pool of reusable byte slices organized by size classes.
The pool maintains separate sync.Pool instances for different buffer sizes, minimizing memory waste by selecting the smallest size class that fits the requested size. This avoids repeated allocations in hot paths.
The implementation uses a wrapper-reuse technique: *[]byte pointers are recycled between Get and Put via a secondary pool, achieving zero allocations in steady state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.