Eli wrote:
> Prompted by a challenge here:
>
> https://fivethirtyeight.com/features/pirates-monkeys-and-coconuts-oh-my/
>
> (Near the bottom of the page, in the answers to the previous challenge
> dealing with editors.)
>
> I tried inserting a million letter "i"s into a new buffer with vim. Oh,
> how insanely slow it was. I hit control-C after 20ish seconds and it was
> up to about 30,000 letters inserted. I tried two different builds of vim.
>
> Then, for comparison, I used nvi and elvis. Nvi does it too fast to measure by
> wall clock. Elvis was under 5 seconds.
>
> vim: VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)
> (This version is the package one for my Ubuntu release.)
>
>
> vim: VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Mar 13 2018 17:19:45)
> nvi: Version (1.81.6-2013-11-20nb3) The CSRG, University of California, Berkeley.
> elvis: elvis 2.2.0
> (These three were all tried on NetBSD, the Vim and Elvis compiled from source,
> the Nvi the system /usr/bin/vi.)
>
> I don't think blinding fast is entirely necessary, but not even half-way
> there in 20 seconds is Not Good.
There is an old entry in the todo list to do profiling on this, to find
out what takes so much time. Apparently nobody bothered to look into
this yet.
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
/// Bram Moolenaar -- Bram@Moolenaar.net -- 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_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment