DEV Community

Discussion on: Supercharge Zsh Startup

Collapse
 
maxdevjs profile image
maxdevjs

I am curious now... did you try your exact old, slow on wsl, configuration with a locally installed GNU/Linux?

I recently switched to zimfw and it is effectively lighter than oh-my-zsh.

Testing time zsh -c exit using most of oh-my-zsh features, a heavily festooned zsh configuration split in several files, etc versus no configuration at all returned the same result: basically zero.

Cold startup time of a terminal + zsh + oh-my-zsh is barely noticeable:

  • xterm around 0.2s
  • kitty around 0.3s

For nvim with plenty of plugins, configuration split in several files, etc the startup time is averagely under 0.2s . Cold startup time of a terminal + zsh + oh-my-zsh + nvim is between 0.3s and 0.4s

zimfw environment seems even faster.

I recently found that I can screw the configuration and reach a noticeable lag, but in very edge cases (example: executing the wrong script in the wrong startup file/sequence).

Note: tests done on very old hardware, but with SSD drives :)

Collapse
 
waylonwalker profile image
Waylon Walker

Yes I use the same config accross many machines running rhel, Debian, ubuntu, accross several cloud platforms. The only place that I really see this issue is inside wsl1. I assume that it is constrained by it's known terribly slow file io. Waiting patiently for wsl2 as there is no way for me to get a non windows main machine.