Somebody on IRC recommended I bring this issue up on the dev list last week, so here I am.
I've done a fair bit of debugging/profiling to determine what was making my Vim
instances so slow with larger (>1k lines) Ruby files.
I've tracked it down to foldmethod=syntax, which left me with the following
backtrace from gdb:
#0 0x0000000000584f8a in fast_breakcheck ()
#1 0x00000000005d5e75 in ?? ()
#2 0x00000000005d8c2d in ?? ()
#3 0x00000000005d9010 in vim_regexec_multi ()
#4 0x0000000000613b45 in ?? ()
#5 0x000000000061b263 in ?? ()
#6 0x000000000061c048 in ?? ()
#7 0x000000000061c4fc in syntax_start ()
#8 0x000000000061cdd1 in syn_get_foldlevel ()
#9 0x000000000054a654 in ?? ()
#10 0x000000000054bfbb in ?? ()
#11 0x000000000054bd7e in ?? ()
#12 0x000000000054bd7e in ?? ()
#13 0x000000000054bd7e in ?? ()
#14 0x000000000054bd7e in ?? ()
#15 0x000000000054c9d7 in foldUpdate ()
#16 0x000000000057b85a in ?? ()
#17 0x000000000057c039 in changed_bytes ()
#18 0x000000000057c9e7 in ins_char_bytes ()
#19 0x000000000057cbb2 in ins_char ()
#20 0x00000000004e28eb in insertchar ()
#21 0x00000000004e54f1 in edit ()
#22 0x0000000000597e9a in ?? ()
#23 0x00000000005a201c in normal_cmd ()
#24 0x0000000000658add in main_loop ()
#25 0x000000000065a79e in main ()
(gdb) bt
Any more details I can help with to isolate and fix the issue? Unfortunately I
can't share the files that cause the issue, but I'm not afraid of a little gdb
or valgrindin' if necessary.
Cheers
- R. Tyler Croy
--------------------------------------
Code: http://github.com/rtyler
Chatter: http://twitter.com/agentdero
[email protected]
pgprsvUuOv7zB.pgp
Description: PGP signature
