I have been working on a hobby project to reimagine the C core of Emacs in Rust. On this journey, I reached the point where I needed some way to represent the text of a buffer. The simplest approach is to just use a large string or array of lines. However these each suffer from poor performance as either the size or line length of text increases.
GNU Emacs has famously used a gap buffer to represent editable text.
GitHub - p3r7/awesome-elisp: 🏵️ A curated list of Emacs Lisp development resources
github.com - get the latest breaking news, showbiz & celebrity photos, sport news & rumours, viral videos and top stories from github.com Daily Mail and Mail on Sunday newspapers.
Text Editor Data Structures
cdacamar.github.io - get the latest breaking news, showbiz & celebrity photos, sport news & rumours, viral videos and top stories from cdacamar.github.io Daily Mail and Mail on Sunday newspapers.