Focus: text

from blog Scattered Thoughts, | ↗ original
So far the editor has to do these things with text: iterate forwards/backwards insert/remove strings lookup the point corresponding to a given line find out the line at a given point The simplest thing we could possibly do is just store the entire text in a contiguous string. How would this perform for a 2mb text on my 2017 xeon laptop? A string is the most efficient choice for iterating - we get a simple loop...