Sunday, July 16, 2023

Re: Improving vim startuptime

On Sun, Jul 16, 2023 at 6:57 PM Manas <manas18244@iiitd.ac.in> wrote:
>
> Hey folks, today I ran hyperfine on vim and found my startuptime is way
> too slow.
>
> Benchmark 1: /usr/bin/vim
> Time (mean ± σ): 2.707 s ± 0.036 s [User: 0.598 s, System: 0.097 s]
> Range (min … max): 2.674 s … 2.779 s 10 runs
>
>
> Are there any tips on improving this?
>
> --
> Manas

And you think 2.7 seconds is unbearably long? I suppose I'm
old-fashioned. When I started programming on a mainframe in the
seventies (131072 six-bit characters, no virtual memory, no
floating-point computations, no lowercase printing, 667 kHz, and it
needed an air-conditioned hall bigger than the apartment I live in
today) it took way longer than that to load a test program from its
executable tape. Even after downloading the tested version to disk,
three seconds would have been lightning-quick. Oh well, times change
after all.

Try getting (or compiling) a minimal version of Vim without GUI
(possibly called "vi") then load it as "vi -u NONE -N". Maybe you will
regret its lack of features, and in particular its lack of GUI and its
lack of configuration possibilities, but I expect it will load
significantly faster. After you test it for some time, then maybe you
will decide that 2.7 seconds wasn't so bad after all for the features
you enjoyed. Or maybe you will be so enthusiastic about having a
zip-fast (if feature-poor) Vim that you'll stay with it.

Best regards,
Tony.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXtW1cdVAtcKHfo7gBDrXs7s2twCLX3QycEg%3DvTjAfzBQg%40mail.gmail.com.

No comments: