Skip to main content

Module rope

Module rope 

Source
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ยง

ChunkedLine
A line stored in the rope buffer.
RopeBuffer
A rope-based line buffer for efficient large document storage.
RopeMemoryStats
Memory usage statistics for a rope buffer.