-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Case Study] Perfomance of workspaces foreach #2073
Comments
Hi! 👋 It seems like this issue as been marked as probably resolved, or missing important information blocking its progression. As a result, it'll be closed in a few days unless a maintainer explicitly vouches for it. |
Seems it's bothering only me :) BTW in my case, it was a problem with TS and some other build tools so I just replaced tasks in packages with one in the root of the workspace. |
I had the same issue (but with just a few packages), I reverted to using lerna run |
It's more that there isn't an identified action item, so there isn't much to say 🙂 |
@christophehurpeau I got kinda same performance with lerna |
Hi! 👋 It seems like this issue as been marked as probably resolved, or missing important information blocking its progression. As a result, it'll be closed in a few days unless a maintainer explicitly vouches for it. |
I have some performance optimizations in mind that might help, i'll get a PR up eventually |
Yeah, I'm also in the same boat. It seems that executing even a basic echo on a single workspace item is very slow
Where all this does for the script section is "echo echo" Running this on an entire monorepo with 20 packages takes 20-30 seconds |
Did some more research, seems this is not really related to foreach and more just the invocation of yarn for each workspace. I attached a debugger to the workspace tool and it itself doesn't do much. So maybe with the improvements to |
I tested with latest version of yarn from sources and I can confirm it's faster ! Thanks ! |
this issue not related to other projects but yarn itself
Describe the goal of the investigation
I noticed that when I'm running even very simple scripts like
pwd
viayarn workspaces foreach
it takes a very long time. Is it expected behavior? Maybe there are some opportunities to optimize it?Investigation report
For example, in a workspace of 100 packages, it takes almost 2min. Run via lerna takes a bit less, maybe about -15s. But I think it's still not great numbers.
The text was updated successfully, but these errors were encountered: