DEV Community

TANIGUCHI Masaya
TANIGUCHI Masaya

Posted on

Introduction to the lighting-fast plugin manager, vim-jetpack

Liquid syntax error: 'raw' tag was never closed

Top comments (4)

Collapse
 
moopet profile image
Ben Sinclair

minpac has a smaller minimum value and a faster startup record than jetpack, but its maximum value is also significantly higher

I'd challenge your use of the word "significantly" there, and everywhere else - is 10ms something a human can notice during the startup of an application?

Even if I opened Vim 1000 times a day, I'd save ten seconds.

Collapse
 
tani profile image
TANIGUCHI Masaya

Good point.
I might oversate the performance. However, we can see the same word choice in introduction to filetype.lua in neovim.

Well, creating thousands of autocommands on startup is not exactly very performant. Indeed, filetype.vim is one of the slowest (perhaps the slowest) startup files shipped with Neovim. (...)
This is the approach filetype.lua takes, which means that it is considerably more performant than filetype.vim.
reddit.com/r/neovim/comments/rvwsl...

In my environment, filetype.vim takes around 10ms.

We may feel a delay if it takes 33ms (i.e., 1 frame for 30 fps).
It is valuable to reduce 10ms, isn't it?

Collapse
 
moopet profile image
Ben Sinclair

I think at the point where we're measuring 1-off improvements in tens of milliseconds, it's not valuable. If this was in a library being called hundreds of times, then sure. Otherwise, it's only valuable so long as it doesn't impact anything else, such as code readability or cross-platform compatibility. I mean, for example, if you get an optimisation for one platform by splitting the code, for example, then it's debatable whether you've improved the final product.

Collapse
 
pandademic profile image
Pandademic • Edited

wow! Thank you for creating this!