=> nerds only A blog on rails, php, computing, my bass guitar and stuff

Visualising Vim startup time

on in Development, Linux

I wanted to visualise Vim’s startup time because over time and with the constant triccle of new plugins Vim became slower and slower to start up. Opening vim with a local file wasn’t too slow (700ms) but when using Vim over sshfs it took seconds to open a file.

With some searching I found a shell script that generates a graph with R. It was made to work with Vim and not Neovim so I patched it to work with Neovim.

I first had to install R which I tried with linuxbrew but that took to long on my old laptop because GCC 5.2 had to be compiled.

brew tap homebrew/science
brew install r

So I opted to install it from the Ubuntu repositories instead:

sudo apt-get install r-base-core r-cran-ggplot2

I downloaded and and ran the command.

The result of the profiling was that NeoBundle took the longest too load. I tried optimising NeoBundle loading by using the built in cache. That made it a bit faster but loading Vim on a sshfs mounted directory stil takes long. I think I’ll have another stab at speeding up the loading of Vim next week.