Hello, i understand that this is forum is for technical support for sublime users so my post don’t really fit here.
As a programmer, I’m just fascinated by sublime text’s performance and its text quick processing, And if its not a secret, i wanna know how it does that
For example, it can edit 500MB file without any lag.
What data structure does it use to store its internal text?
Here are the possibilities:
- array of heap allocated lines
- gap buffer
- btree
- rope
My guess is it probably uses something line-based cause it editing does lag on big lines
Respectfully, to sublime devs.