by anderscarling · 9y ago · 0 comments
I spent a few hours on this about a year back and went from over 2s to about 0.15s for a full run of an interactive login shell (`time zsh -l -i -c 'echo "test"'`). No functionality lost, at least none that I actually used and cared about.
Definitely one of the best quality of life improvements I've made to my setup in recent years.
I was also worried about random code getting downloaded to my machine and getting executed.
~ time zsh -l -i -c 'echo "test"'
test
zsh -l -i -c 'echo "test"' 0.09s user 0.07s system 86% cpu 0.185 total
~