by proverbialbunny · 7y ago · 0 comments
Most text editors today do not support such functionality. With lockless data structures like an rrb-tree it becomes easy. It really is an ideal way to do write a text editor.
RRB-Trees: Efficient Immutable Vectors (2012)
https://infoscience.epfl.ch/record/169879/files/RMTrees.pdf
EDIT: For further reading:
Improving RRB-Tree Performance through Transience (2014)
https://hypirion.com/thesis.pdf
Article: https://hypirion.com/musings/thesis
A lot of the time I can use grep and other command-line tools to find what I need, but given the nature of the job I don't always know what I'm looking for so having the raw file open in a text editor is sometimes the only way.