Bram Moolenaar wrote: > Syntax highlighting of XML with long lines is a lot faster now.
Hi I was hoping for faster xml syntax highlighting after reading the above comment, but using :set regexpengine=1 (old engine) is much faster than :set regexpengine=0 (automatic engine). Here is a comparison using vim-7.3.1090 (big) on Linux x86_64: 1/ download this xml file: $ wget http://svn.code.sf.net/p/languagetool/code/trunk/languagetool/languagetool-language-modules/fr/src/main/resources/org/languagetool/rules/fr/grammar.xml 2/ create a simple ~/.vimrc $ cat ~/.vimrc set nocompatible set regexpengine=1 filetype on filetype plugin on syntax on 3/ measure (using old regexp engine): $ time vim -c ':norm G' -c ':redraw|q' grammar.xml real 0m3.511s user 0m3.444s sys 0m0.052s 4/ change "set regexpengine=1" into "set regexpengine=0" in ~/.vimrc 5/ measure the same command again (using new regexp engine): $ time vim -c ':norm G' -c ':redraw|q' grammar.xml real 0m16.429s user 0m16.117s sys 0m0.256s So in this xml example, it's x4.7 slower with the new regexp engine. Is this expected? The grammar.xml file contains a few long lines. Here is the length of the 5 longest lines: $ perl -ne 'print length($_), "\n"' < grammar.xml | sort -n | tail -5 812 924 1217 1343 2312 Regards Dominique -- -- 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/groups/opt_out.
