as / a

A graphical text editor
BSD 3-Clause "New" or "Revised" License
347 stars 25 forks source link

a: win: scroll+sweep is O(2n) #40

Closed as closed 6 years ago

as commented 6 years ago

The traditional method for scroll+sweep is to transpose the background and foreground colors during insertion of new text. This is because the new text is being selected, so there is no need to highlight it again (just insert it with the right color in the first place). Currently, the logic in frame/win doesn't account for that. Text is inserted with the regular text color, and then repainted (which essentially means redrawn). A trivial performance improvement can be ascertained by fixing this.

as commented 6 years ago

generally a non issue at this point