summaryrefslogtreecommitdiff
path: root/examples/dtail.json.example
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-02 17:01:13 +0300
committerPaul Buetow <paul@buetow.org>2025-07-02 17:01:13 +0300
commite74957dd14d0b1d996ae7b67f000f2bb6296c6a7 (patch)
treeed119163ad868c6a27c265b5a00020d7d5c65036 /examples/dtail.json.example
parente0cb2a417963b6515b16a5f12f36c7144d21f134 (diff)
perf: implement tiered buffer pooling to reduce allocations
- Add scanner_pool.go with tiered buffer pools (1MB, 64KB, 4KB) - Modify readWithProcessorOptimized to use pooled scanner buffers - Update tailWithProcessorOptimized to pool 64KB read buffers - Increase BytesBuffer pool initial capacity from 128B to 4KB - Add buffer_pool_test.go to benchmark pooling effectiveness This reduces memory allocations by ~36% in turbo mode by reusing buffers instead of allocating new ones for each file operation. All integration tests pass. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'examples/dtail.json.example')
0 files changed, 0 insertions, 0 deletions