Why jumping around in text is hard
Why jumping around in text is hard
Posted Feb 25, 2008 6:30 UTC (Mon) by zlynx (guest, #2285)In reply to: by joey
Parent article: Emacs news: new maintainer, version 22 pretest
It would be great if more editors used lseek or mmap to read the files. But, it is difficult to do this. If you wish to jump to line 9997, where is it? How many characters are in a line? The editor cannot know unless it scans for each newline from position 0. Text encodings like UTF-8 complicate this even more because now characters can be variable sizes as well.
