Subject: | Improve performance by adding -n to vim_options |
I have found that adding "-n" (no swapfile) to the vim options provides
a noticable speed improvement. It shaved two seconds (5.5s to 3.5s) off
the generation time for a modestly sized input file highlighted by a
rather heavy syntax file.
See supplied patch.
Subject: | vimcolor.patch |
diff -ru Text-VimColor-0.11/lib/Text/VimColor.pm Text-VimColor-0.11-patched/lib/Text/VimColor.pm
--- Text-VimColor-0.11/lib/Text/VimColor.pm 2006-02-19 19:31:33.000000000 +0000
+++ Text-VimColor-0.11-patched/lib/Text/VimColor.pm 2009-05-01 14:51:20.000000000 +0000
@@ -14,7 +14,7 @@
our $VERSION = '0.11';
our $VIM_COMMAND = 'vim';
-our @VIM_OPTIONS = (qw( -RXZ -i NONE -u NONE -N ), "+set nomodeline");
+our @VIM_OPTIONS = (qw( -RXZ -i NONE -u NONE -N -n ), "+set nomodeline");
our $NAMESPACE_ID = 'http://ns.laxan.com/text-vimcolor/1';
our %VIM_LET = (
@@ -565,7 +565,7 @@
A reference to an array of options to pass to Vim. The default options are:
- qw( -RXZ -i NONE -u NONE -N )
+ qw( -RXZ -i NONE -u NONE -N -n ), "+set nomodeline"
=item vim_let