You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shell start up time has significantly increased due to a recent change to the Yarn plugin. I ran a git bisect and narrowed down the culprit to this commit f0bbef1 .
Steps to reproduce
With yarn enabled
$for i in $(seq 1 10); do /usr/bin/time zsh -i -c exit; done
0.36 real 0.22 user 0.10 sys
0.29 real 0.19 user 0.08 sys
0.29 real 0.19 user 0.08 sys
0.32 real 0.21 user 0.09 sys
0.29 real 0.19 user 0.08 sys
0.30 real 0.19 user 0.08 sys
0.30 real 0.19 user 0.08 sys
0.29 real 0.19 user 0.08 sys
0.30 real 0.19 user 0.08 sys
0.29 real 0.19 user 0.08 sys
With Yarn disabled
$ for i in $(seq 1 10); do /usr/bin/time zsh -i -c exit; done
0.39 real 0.22 user 0.14 sys
0.12 real 0.07 user 0.04 sys
0.12 real 0.07 user 0.04 sys
0.12 real 0.07 user 0.04 sys
0.12 real 0.07 user 0.04 sys
0.12 real 0.07 user 0.04 sys
0.12 real 0.07 user 0.04 sys
0.12 real 0.07 user 0.04 sys
0.12 real 0.07 user 0.04 sys
0.12 real 0.07 user 0.04 sys
Expected behavior
The startup time for the yarn plugin should not take this long to load. I suspect the culprit is the command yarn global bin which was introduced the commit I outlined earlier
$for i in $(seq 1 10); do /usr/bin/time yarn global bin; done
/usr/local/bin
0.37 real 0.12 user 0.08 sys
/usr/local/bin
0.16 real 0.11 user 0.04 sys
/usr/local/bin
0.17 real 0.11 user 0.04 sys
/usr/local/bin
0.17 real 0.11 user 0.04 sys
/usr/local/bin
0.17 real 0.11 user 0.04 sys
/usr/local/bin
0.17 real 0.11 user 0.04 sys
/usr/local/bin
0.17 real 0.11 user 0.04 sys
/usr/local/bin
0.17 real 0.11 user 0.04 sys
/usr/local/bin
0.17 real 0.11 user 0.04 sys
/usr/local/bin
0.17 real 0.11 user 0.04 sys
Screenshots and recordings
No response
OS / Distro
macOS Montery
Zsh version
5.8
Terminal emulator
alacritty
If using WSL on Windows, which version of WSL
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Shell start up time has significantly increased due to a recent change to the Yarn plugin. I ran a
git bisect
and narrowed down the culprit to this commit f0bbef1 .Steps to reproduce
With yarn enabled
With Yarn disabled
Expected behavior
The startup time for the yarn plugin should not take this long to load. I suspect the culprit is the command
yarn global bin
which was introduced the commit I outlined earlierScreenshots and recordings
No response
OS / Distro
macOS Montery
Zsh version
5.8
Terminal emulator
alacritty
If using WSL on Windows, which version of WSL
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: