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
Lag on half-down/half-up scrolling on macOS #4279
Comments
Hmm... set index_format = '%3C %4Z %?X?📎& ? %D %-20.20F %.70s (%-4.4c) %>' The
Once the cache has been populated, NeoMutt can use the cached value. The caches are very sensitive to code changes and new releases can sometimes cause the cache to be invalidated. If you see a persistent slowdown, please let me know. Thanks |
@flatcap That actually fixed it! Good call, thank you so much! |
@flatcap Just seeking clarification on this. Removing %X does indeed fix the lag. Assuming I want to keep %X, however, what's not clear is why the cache that makes everything zippy on subsequent scrolls doesn't persist on Neomutt restart. When you say "cache," do you mean the disk-stored header/body caches, or is there some separate memory-based caching that happens? I haven't been able to get body caching to work because I think it requires the use of IMAP/POP (I use isync/mbsync), so maybe this is my issue. 🤷🏻♂️ |
No problem... The header cache stores the value for Calculating When you change pages, more reading needs to be done. Unfortunately, there isn't a way to tell NeoMutt to re-cache an entire folder. Here are my header cache settings: # Trailing / means create separate dirs for each folder
set header_cache = "~/.cache/mutt/"
# Fast modern database
set header_cache_backend = "lmdb"
# Enable compression; even low levels are quite effective in saving space
set header_cache_compress_level = 18
set header_cache_compress_method = "zstd" |
My header cache settings (lmdb,zstd,10) are close to yours and when I do |
I searched for existing issues related to this, but didn't find the exact problem I am experiencing. I apologize if it has been brought-up already.
Expected Behaviour
Half-page scrolling up and down smoothly without lag
Actual Behaviour
When holding the half-up and half-down (Ctrl-U/D for me) scrolling on macOS 12/Alacritty there is a lot of screen lag and the screen lags far behind the number of registered keystrokes. Here are some tests I ran:
Using a mailbox with 11,000 messages starting at the top and scrolling to the bottom using half-down,
macOS/Alacritty or Terminal took: 80s
Ubuntu/Gnome Terminal took: 24s
When half-down scrolling through the same mailbox a second time without having closed neomutt,
macOS/Alacritty took: 20s -- the issue rectifies itself after the first scroll-through.
Ubuntu/Gnome Terminal took: 24s
This has been a long standing issue since I began using Neomutt a few years ago on macOS. Changing header cache db provider did not change the results.
Steps to Reproduce
See above
How often does this happen?
When did it start to happen?
NeoMutt Version
Extra Info
The text was updated successfully, but these errors were encountered: