A glance into web tech-based text editors’ text management
ecc-comp.blogspot.com
ecc-comp.blogspot.com
I've been creating a hobby text editor for myself and have tried almost every text editor library on the planet, I think Draft and Quill are the best.
Is it really that easy? Why aren't they using those data structures already?
Worst case scenario for a plain array is if you insert to the front of the array where it has to shift everything down one. But even if the file is on the order of several megabytes, this will still finish in milliseconds at most and the typist won't notice it.
What a waste of laptop battery!
It can be really hard to make software efficient, sometimes there are easy wins.. seems odd to not just do it.
An insert or delete from (e.g.) a rope is very cheap and as they are immutable can make some other features very easy... saves copying megabytes...
Too bad, blogspot on mobile is a pain in the butt.