Yakov Lerner wrote:
> > On 4/27/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
> > > Before even thinking of disabling autocommands, we first need proof that
> > > this actually changes the search time more than a few percent.
> > >
> > > Above that, if BufRead autocommands take so much time there is probably
> > > something wrong with them. You should find out why this happens.
>
> I see that BufRead autocommands are not related to speed of
> vimgrep.
>
> But why viminfo needs to be read for every grepped file ?
> Command "20verb vimgrep ..." shows
>
> Reading viminfo file "/home/Yakov/.viminfo" marks
>
> for every grepped file. Is it really needed ?
It is only needed if the buffer contains a match. But we can't predict
that. Using another mechanism would be a bit complicated.
How much extra time does it take to read the marks from the .viminfo
file?
--
ARTHUR: No, hang on! Just answer the five questions ...
GALAHAD: Three questions ...
ARTHUR: Three questions ... And we shall watch ... and pray.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///