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

Slow scrolling in perl files #123

Open
r10r opened this issue Nov 4, 2022 · 5 comments
Open

Slow scrolling in perl files #123

r10r opened this issue Nov 4, 2022 · 5 comments

Comments

@r10r
Copy link

r10r commented Nov 4, 2022

Hi @wellle,

we experience super slow scrolling in perl files when context.vim is enabled (version c065414)
This happens even in short perl files like /usr/share/vim/vim82/doc/vim2html.pl

Scrolling works perfectly fine with context.vim enabled in other files, e.g in /usr/local/go/src/crypto/elliptic/internal/fiat/p521_fiat64.go with 5k lines.

Maybe related to #68 ?

@r10r
Copy link
Author

r10r commented Nov 4, 2022

I've profiled the slow scrolling in /usr/share/vim/vim82/doc/vim2html.pl

context.log

@r10r
Copy link
Author

r10r commented Nov 4, 2022

Hmm, I've added let g:context_filetype_blacklist = ['perl'] to my ~/.virmc but scrolling in perl files is still slow.
But when the context.vim plugin is not loaded at all scrolling is back to normal.

@FalcoGer
Copy link

I experience something similar with python. It also still happens when context is disabled with :ContextToggle.

Even relatively small python files (63 lines) are dropping a lot of frames when scrolling through them where larger c++ files are just fine. Large python files are extremely slow.

Perhaps context should not update on cursor move or scroll until the cursor stops for some amount of time, say a few hundred milliseconds?

@FalcoGer
Copy link

I have disabled the cursormove and winscrolled events and rely on cursorhold for now as a workaround.

FalcoGer added a commit to FalcoGer/dotfiles that referenced this issue Jul 25, 2023
@r10r
Copy link
Author

r10r commented Mar 13, 2024

Related to #102

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

No branches or pull requests

2 participants