Re:Microsoft is updating Notepad
by lighttower on Thursday July 12, 2018 @10:50PM
(#17520170)
There is a comment somewhere on HN from the guy that wrote the mapping trick that Word (or WordPerfect) invented way back. They were saving changes to the file rather than flattening. I wish I could find it now.
[ Parent
| on HN ]
The data structure is called a piece table, if that ids your search.