Documentation
¶
Overview ¶
Package bufferpool provides tiered sync.Pool byte buffer pools to reduce GC pressure in high-throughput paths (PTY output reading, WebSocket writes, stream management). Three tiers: 4KB (small reads), 32KB (medium I/O), 256KB (large data transfers).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get returns a zero-length byte slice with capacity >= size from the appropriate tier pool. The returned slice has length 0 and must be used with append or resliced. Caller MUST call Put when done to return the buffer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.