Expand description
Rope buffer with paragraph indexing and targeted invalidation. Rope-backed text buffer with per-paragraph revision tracking.
ropeyenables O(log n) edits and fast paragraph splitting.- Each paragraph (separated by
\n) has its ownrevision; edits bump only paragraphs intersecting the changed byte range. - Layout caches can invalidate per paragraph instead of flushing entirely.
Structsยง
- Paragraph
Meta - Metadata for one paragraph: UTF-8 byte range and revision counter.
- Text
Buffer - Mutable text storage with a paragraph index (logical line =
\n-separated).