Comment #5 on issue 309 by [email protected]: Expensive
(non-limited) patterns with syntax/diff.vim
https://code.google.com/p/vim/issues/detail?id=309
I checked again. While I do not think, it is feasible to cache the
win_line() function (that function is huge and one would have to cache many
options as the line drawing depends on them and this will likely introduce
regressions) I found that especially the hebrew localization makes Vim
slow. Vim already skips back to the old engine automatically because of the
slow regular expressions for the hebrew localization.
So here is a patch, documenting the g:diff_localization issue (which isn't
yet, I think) and also applies the hebrew syntax highlighting only if some
hebrew chars are actually found. Using that patch, this makes Vim at least
react (though the other localization still make Vim very slow as seen
by :syntime report but you disableing the localization entirely makes Vim
then usable again
Attachments:
slow_diff_syntax_doc.diff 2.1 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.