rktjmp / hotpot.nvim

:stew: Carl Weathers #1 Neovim Plugin.
MIT License
360 stars 9 forks source link

Measuring load time with --startuptime #88

Closed rktjmp closed 2 years ago

rktjmp commented 2 years ago

Hotpot includes a binary cache for lua modules by default.

When measuring Neovims startup time with nvim-0.8's new require() timing capability, it may seem that Hotpot is proportionally much slower than other modules to load.

This is because Hotpot is accelerating the load times of other modules.

To test without the index, you can remove ~/.cache/nvim/hotpot/index.bin and re-run your startup timing.

For example

- Without ~/.cache/nvim/hotpot/index.bin
+ With ~/.cache/nvim/hotpot/index.bin

- 013.108  007.752: require('gruvbox.gruvbox')
+ 002.254  002.197: require('gruvbox.gruvbox')

- 013.341  002.467: require('feline')
+ 000.077  000.024: require('feline')

- 054.548  001.671: require('cmp')
+ 001.001  000.133: require('cmp')