Expand description
Rope Buffer: Chunked storage for efficient large document handling.
This module provides a rope-based data structure optimized for:
- Large documents (1M+ lines) with minimal allocations
- O(1) append and O(log n) random access
- Good cache locality through chunking
Structsยง
- Chunked
Line - A line stored in the rope buffer.
- Rope
Buffer - A rope-based line buffer for efficient large document storage.
- Rope
Memory Stats - Memory usage statistics for a rope buffer.