-
Notifications
You must be signed in to change notification settings - Fork 132
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
Significant slow down finding spago.yaml config when building #1295
Comments
Have you tried using a newer version of spago? For the interested reader, these are all the issues and PRs which changed and fixed the globbing code since 0.93.29 Release of 0.93.29 |
Yes, there is no improvement with |
@OwenGraves do you have a repro at hand that I could have a look at? Having a codebase to poke would really help to see where the slowdown is. |
Unfortunately the only repo where I see this occur is private, but I think the slowdown is from navigating a large |
Ok, I have a reproducer, though it is not as extreme as the screenshot shows. Spago.yaml:
With an existing cache, this takes more than 1100ms to find spago configs:
Even though the files have to be read and parsed, this seems like too long, since PyYAML can parse/dump these files in less than 10% of the time it takes Spago:
And with 0.93.29, this build finishes in 450ms. So that indicates that this is the same issue that OP is experiencing. |
@ysangkok I can't repro with your example, on my machine a In any case I just released |
|
On changing from versions
[email protected]
to[email protected]
there is now a significant slow down after theGathering all the spago configs in the tree...
step when running aspago build
:Before 0.93.30, this step would be nearly instant instead of taking several minutes:
The
spago.yaml
is in the same directory as when running the commandspago build
The text was updated successfully, but these errors were encountered: