Documentation
¶
Overview ¶
Package bufpool pools byte slices by power-of-two capacity, so a buffer that grew for one large message serves the next of its size instead of being dropped, and never sits in a pool meant for small ones.
Index ¶
Constants ¶
View Source
const ( // MinBits is the smallest class, 1 KiB; smaller requests get it. MinBits = 10 // MaxBits is the largest class, 64 MiB; larger buffers are not pooled. MaxBits = 26 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.