-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
MatchParen is soooo slow when ft=raku #12168
Comments
As a workaround I put this in my vimrc: |
Can you please do profiling to find out where matchparen is slow? Also, does it work better if you disable syntax highlighting? In that case using |
Here is one where I manually moved the cursor around and observed the lag while profiling (full profile in this gist):
Here is one where I just did everything in
Yes, there's no lag when
Here, I recorded this using the reproduction steps, just moving the cursor back and forth over some parenthesis:
|
I'm now realizing that typing quotation marks and parenthesis is noticeably slow too, even with NoMatchParen. |
Hm,
but I think it's not searchpairpos() that is notoriously bad, it's just that getting the correct syntax elements is, what makes it slow. This also corresponds to your syntime profile. The individual patterns actually doen't look so bad, I just wonder why there were more than 2000 count matches for that reproduction steps. |
This appears to be a problem with the syntax highlighting. The file suggests to report at https://github.com/Raku/vim-raku/issues |
Ah okay, thank you. It appears there's already an issue there Raku/vim-raku#35, I guess I'll close this now. |
Steps to reproduce
vim --clean
(((((((())))))))
:set ft=raku
:source $VIMRUNTIME/plugin/matchparen.vim
Expected behaviour
Ideally there should be no lag or delay
Version of Vim
9.0 Included patches: 1-1337
Environment
OS: Alpine Linux edge
Terminal: foot
$TERM: foot
Shell: busybox ash
Logs and stack traces
No response
The text was updated successfully, but these errors were encountered: