Most text editors work slowly when the lines are very long. The proposed data storage structure for a text editor seems like a rope that should be protected from changing long lines. By the way, editors are even slow when they just go into long lines.
Example: A single character, such as 0, repeated 100,000 times in the PSPad or 1,000,000 times in Vim on the same line, slows down the cursor when you are at the end of the line. If there are as many bytes in the file but sent over several lines, the cursor does not slow down at all, so I suppose this is not a memory problem.
What is the origin of this problem?
I mainly use Windows, so maybe this is related to the processing of Windows fonts?
source share