olimorris / persisted.nvim

💾 Simple session management for Neovim with git branching, autoloading and Telescope support
MIT License
437 stars 26 forks source link

Startup time increased dramatically #52

Closed abulwafa closed 1 year ago

abulwafa commented 1 year ago

After the commit 774e4d70e9f0092cc6d2850399fa1ccaca78fc5e

startup time in lazy.nvim increased by 400 msec

olimorris commented 1 year ago

That will be the removal of vim.schedule. It was only necessary because I'd messed up the autocmds. Just tested myself actually. Wayyyyyyy faster!

abulwafa commented 1 year ago

@olimorris unfortunately, using autoload=true still causes the same delay.

olimorris commented 1 year ago

Are you sure that's not an issue with the plugin you're using to benchmark? My Neovim loads instantly with autoload = true:

Screen Shot 2023-02-27 at 10 37 36

and with autoload = false:

Screen Shot 2023-02-27 at 10 38 46@2x Screen Shot 2023-02-27 at 10 39 07@2x