Documentation
¶
Overview ¶
Package scanbuf provides a pooled buffer for bufio.Scanner instances that need to handle large JSONL lines (base64-encoded tool output, etc.). Allocating a fresh multi-MB buffer per scan is a significant allocation source for pollers that scan many files per tick; pooling amortizes it.
Index ¶
Constants ¶
View Source
const MaxTokenSize = 10 * 1024 * 1024
MaxTokenSize is the maximum line size supported by buffers from this pool.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.