High CPU usage on Fedora 40
zhscn opened this issue · comments
zhscn commented
Steps to reproduce
- Open one log file, here is an example of mine, the complete file size is about 250M
log.txt - Press Ctrl-D to continue scrolling down.
- CPU usage reaches 100%
Expected behaviour
CPU usage should be at a low level.
Version of Vim
9.1.309
Environment
OS: fedora 40
terminal: gnome-terminal-3.50.1-6.fc40.x86_64
$TERM: xterm-256color
Logs and stack traces
No response
Christian Brabandt commented
ping @luukvbaal
Aliaksei Budavei commented
luukvbaal commented
Hmm almost missed this despite the ping because of the nondescript issue title.
We just spend a lot of cycles in plines_m_win()
with limit_winheight == FALSE
. We need to count until w_height + count
so limit_winheight == TRUE
doesn't work. Could add a new argument to plines_m_win()
to that end.