-
-
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
[Syntax/Performance] Perl6 syntax significantly slows down vim #4339
Comments
Can you provide your vim version, and a link to a Perl6 source file that shows this performance issue? |
I opened the following file Perl6 file...
I'm not sure this reproduces your slow highlighting, but this is what I got;
|
Did you verify this happens when started with |
I've tried to reduce my Full version info (vim --version):
|
This perl6 file is what I'm editing: https://github.com/dupr/duprkit/blob/master/bin/flink |
Check the output of |
Also regarding the perl6 runtime file. Try with an up to date file from the upstream repository https://github.com/vim-perl/vim-perl and possibly ask there regarding the syntax performance. Perhaps the problem has already been fixed there? I notice the perl6 syntax file hasn't seen any updates for a couple of years, so this might as well help. |
The difference between
The syntime stat looks like the follows:
I tried to set |
https://github.com/vim/vim/blob/master/runtime/syntax/perl6.vim This syntax highlighting is faster than the one shipped by vim. Combining this updated perl6 syntax file, and |
That is the one shipped by vim. I suppose you mean https://github.com/vim-perl/vim-perl6/blob/master/syntax/perl6.vim ? Might want to ask at the vim-perl repository to send updated runtime files to Bram for distribution with Vim. Ah, there is issue vim-perl/vim-perl#249 but that seems to be resolved partially. |
Ah, yes. I just copied the wrong URL.
Umm... I poked them. |
okay, closing then. |
I see that there are 2 tickets at https://github.com/vim-perl/vim-perl6/issues about slow perl6 syntax highlighting in vim:
The repo https://github.com/vim-perl/vim-perl6 does not seem very active. |
Is your feature request related something that is currently hard to do? Please describe.
It's difficult to gain a smooth editing experience with plugin-less vim on perl6 source files, because the very complex perl6 syntax has already slowed vim down.
Describe the solution you'd like
Open an perl6 source code, the scrolling experience is far not smooth enough like many other simpler languages such as perl5 or python. I request some optimization in vim's syntax highlighting mechanism, or optimization in the perl6 syntax.
Describe alternatives you've considered
Maybe Emacs or VScode has a better rendering engine? I've still not tried them out yet.
The text was updated successfully, but these errors were encountered: