Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize scroll speed using "circular buffer" arrangement for line numbering #212

Open
MightyPork opened this issue Sep 26, 2017 · 0 comments

Comments

@MightyPork
Copy link
Member

MightyPork commented Sep 26, 2017

AAA ^              ... v   real idx 0, virtual idx r
BBB |              BBB ^               virtual idx 0 
CCC |  --scroll->  CCC | 
DDD |      up      DDD |  
EEE v              EEE |   real idx r, virtual idx r-1

this avoids copying lines and fiddling with utf8 cache for every single character during scroll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant