petdance/vim-perl — Issue #71: Performance considerably slower than older version
Author: rwstauner
Created: 2012-02-06 17:23:11+00:00
State: open

Testing some changes to `Text::VimColor` I noticed that the perl syntax file that shipped with vim 6.3 is 10 seconds faster than the current one.

I know this is a vague "issue" and it's likely due to 7 years worth of featureful additions,
but I was alarmed enough that I wanted to report/document it.

Since I recently learned of vim profiling maybe I can try to profile the syntax file and see if there are any obvious places for improvement (also something like a git-bisect might be interesting).

---

Using directories containing only `.vim/syntax/perl.vim`:

*$ TIME="%e seconds" time env HOME=$HOME/tmp/vim/gh text-vimcolor `perldoc -l CGI` > /dev/null
14.81 seconds

*$ TIME="%e seconds" time env HOME=$HOME/tmp/vim/vim63 text-vimcolor `perldoc -l CGI` > /dev/null
4.70 seconds