Are the internals of other Mac-native text editors like TextMate similar to this as well?
All those features make TextView relatively slow and memory hungry. Because of that, I don’t think _text_ editors that handle multi-megabyte files will use a single NSAttributedString to store the entire document’s text.
For multi-megabyte files I always use Sublime.
The MarkEdit team uses WebView and have strong opinions about why.
The average user does not care.