I'm using prezto with zsh, and find it a little slow to launch a new shell. (N.B. I'm attempting to optimise on a fast-ish system, before moving my configuration to other, slower systems.)
Benchmarking with time zsh -i -c exit:
- 0.046:
bash. - 0.080:
zshwithout prezto. - 0.092:
zshwith prezto, but no modules loaded. - 0.138:
zshwith prezto, and all "default" modules loaded, except forcompletion. - 0.308:
zshwith prezto, and all "default" modules loaded.
Firstly, zsh is 74% slower than bash to load. I could accept the further 73% slowdown (with prezto and all modules except completion loaded), but the 285% slowdown (with all modules) is a bit too much.
Some of these completions are useful, so is there a way to selectively disable some of these? I've heard mention of this elsewhere, although I'm not sure if this is only to improve tab-completion speed, or shell loading as well. (If I could selectively disable completion, this would allow me to profile and work out what was causing the slowdowns.)