Absytree icon indicating copy to clipboard operation
Absytree copied to clipboard

Switch text content representation to rope

Open Nimaoth opened this issue 1 year ago • 0 comments

Current representation is an array of lines. Finish Sum tree and rope implementations and integrate into the editor.

Advantages:

  • Better performance for large files
  • Immutable snapshots of buffer content which can be shared between threads
    • Saving, treesitter parsing/reparsing, etc can be done in background thread without blocking UI
  • Easier sharing of buffer content without having to pass around the entire TextDocument

Nimaoth avatar Jun 29 '24 15:06 Nimaoth