Dominique Pelle wrote:
> I've noticed that pasting a large amount of text in the
> Ex command line of Vim-7.3.444 (huge) is very slow.
> Performances is quadratic with the number of characters
> pasted.
>
> Attached patch speeds it up.
>
> Here is the measured speed to paste 1000, 2000, 4000,
> 8000, 16000 characters in Ex command line before and
> after patch:
>
> number of time time
> characters before after
> pasted patch patch
> ------------ --------- -------
> 1000 0.195 sec 0.050 sec
> 2000 0.610 sec 0.050 sec
> 4000 2.363 sec 0.053 sec
> 8000 8.564 sec 0.059 sec
> 16000 26.960 sec 0.091 sec
>
> I measured with this command (example with 8000 characters):
>
> $ time vim -u NONE \
> -c 'let @"=repeat("x", 8000)|call feedkeys(":\<C-R>\"\<C-C>:q\<CR>")'
>
> Patch is small but function getcmdline(...) is complicated
> so please double check that the patch is OK. I don't see any
> unwanted side effect.
Thanks. I'll check it out.
--
hundred-and-one symptoms of being an internet addict:
77. The phone company asks you to test drive their new PBX system
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
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