Describe the bug
I wouldn't describe this as a bug, just letting you know.
The erlangBitType syntax match expression may cause significant lag when scrolling/redrawing.
To Reproduce
Edit any file with relatively long lines with bit syntax.
You can e.g. :set relativenumber just to make it more obvious, but but required.
This is a typical output of :syntime report after jumping 5 times.
TOTAL COUNT MATCH SLOWEST AVERAGE NAME PATTERN
0.373476 3437 3186 0.002456 0.000109 erlangBitType ...
0.035630 251 0 0.000770 0.000142 erlangMacro ...
0.022778 2186 1944 0.002006 0.000010 erlangOperator ...
Expected behavior
Matchtime/count of erlangBitType simillar to all others
Version
All versions I've tested. e.g. vim 8.0, neovim
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
At a glance, the \%(\/\%(\s\|\n\|%.*\n\)*\)\@<= part looks very slow.
How about changing \@<= to \zs?
@hcs42, have you seen this? I'm triaging issues and was hoping to close this.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()