Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch text content representation to rope #15

Closed
Nimaoth opened this issue Jun 29, 2024 · 1 comment
Closed

Switch text content representation to rope #15

Nimaoth opened this issue Jun 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Nimaoth
Copy link
Owner

Nimaoth commented Jun 29, 2024

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 Nimaoth added the enhancement New feature or request label Jun 29, 2024
@Nimaoth
Copy link
Owner Author

Nimaoth commented Sep 29, 2024

Done by #26

@Nimaoth Nimaoth closed this as completed Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant