top | item 38776684

(no title)

eludwig | 2 years ago

Worked on a homegrown Mac wsywyg editor back in the 90s. Arrays worked perfectly. If you are assuming that files fit in memory, using BlockMove() was very, very fast indeed.

I can see if you need to edit multi-gig log files and things will not fit in memory, but for small files, array is totally fine.

There were other tricks that were done back then to keep the number of single char inserts down to a minimum while typing. Like reading chars into a small buffer during fast typing and then inserting all the keystrokes at once as soon as you had the time.

discuss

order

No comments yet.