3 ms·
MicroEmacs, a free text editor from the 1980s, uses a double-linked list of lines. It is fast and memory compact, after all, it worked on a 64K DOS machine. ht
by WalterBright 9y ago
MicroEmacs, a free text editor from the 1980s, uses a double-linked list of lines. It is fast and memory compact, after all, it worked on a 64K DOS machine.
https://github.com/DigitalMars/med https://github.com/DigitalMars/med
- vidarh 9y agoLinus Torvalds maintains his own version: https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git
- Someone 9y agoIn that memory regime (and without virtual memory), code size matters. With a simple approach, Your data structures may take 10% more memory, but if its code is a few k smaller, it’s a net win even if you exhaust all memory. Also, in that tight memory, people would sometimes choose slower approaches if they had lower memory usage. For example, for each line, do you use a gap buffer, or simply move every line? The former may be slightly more efficient, but eats extra memory.