buffer data structure #2128
mahmoodsh36
started this conversation in
General
Replies: 1 comment
-
|
I don't recall any. aaaand, my 2c: https://github.com/garlic0x1/rope might be of interest if you wanna dive into this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
afaict, currently lem doesnt use an optimized data structure such as a buffer gap or rope, which can reduce the cost of text modifications to log(n). from a quick skim through the codebase lem seems to use a linked list of lines which means edits take linear time.
has any discussion on the use of a specific data structure for storing buffers come up in the past?
Beta Was this translation helpful? Give feedback.
All reactions