lewis6991 / impatient.nvim

Improve startup time for Neovim
MIT License
1.19k stars 28 forks source link

Neovim startup is much slow in mac than in linux. #73

Closed finviman closed 1 year ago

finviman commented 1 year ago

I use neovim 0.8, exactly the same config files in both OS. it’ll take 60ms to startup in linux but 180ms in macos m1 pro. below is the part of --startuptime output , the difference lines: this is mac:

103.941  087.375  087.375: sourcing ~/.config/nvim/init.lua
183.011  044.137: VimEnter autocommands

this is linux:

030.694  026.166  026.166: sourcing ~/.config/nvim/init.lua
059.600  010.673: VimEnter autocommands

I don’t know why, mac hardware is much better than linux, and no harddisk encrypt.

lewis6991 commented 1 year ago

There's no information here I can use to assist.

lewis6991 commented 1 year ago

I'm going to close this.

If you can provide any more information then I'm happy to try and help.

clason commented 1 year ago

Slow(er) startup due to filesystem access on macOS is just a fact of life that can be observed even without impatient.nvim.

(If I had to speculate, I'd suspect an extra system protection layer.)

finviman commented 1 year ago

I'm going to close this.

If you can provide any more information then I'm happy to try and help.

Thank you for attention. I fixed it yestoday. I started alacritty in M1 pro with rosetta translation(it's not neccessary and is not recommended.), so homebrew install every packages as if it's in Intel platform. This affects performance significantly. So I reinstall homebrew and all the packages included neovim, now the startup time is under 60ms.