-
Notifications
You must be signed in to change notification settings - Fork 131
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
Stuck at purs graph
#1243
Comments
I wonder if you're hitting #1242 - a few questions to try to pinpoint the issue:
|
OK, I installed spago 0.93.32 from Nix and indeed, this worked now. So must be some bug in later versions. The 0.93.32 output is this:
The output for 0.93.35 is the same except the last |
BTW, the 0.93.32 build feels still slower than was was there previously. The purescript builds for me always were fast and now I'm visibly waiting for the |
Ah I see - we switched json library in 0.93.31, can you try how's the performance with 0.93.30? |
Btw I assume that you want the |
I don't see a large time difference between 0.93.30 and 0.93.32, it's around 29 seconds for both and the transitive dependencies step is the longest. Indeed I have |
Do you happen to have a repo with many packages? I added additional logging, and I'm testing on purescript-core - it turns out the bottleneck is not the JSON decoding, but running the computations on the graph takes 1-2s per package:
|
@CGenie I just released 0.93.36 with additional logging - it looks like most of the time is being spent in |
I'm working on an open-source project: Please check out the You might be lucky just running: yarn
yarn spago build but if not, then try |
Here is another reproduction case for this: https://github.com/peterbecich/purescript-bridge/tree/merge-iohk-3
, tools provided by https://github.com/thomashoneyman/purescript-overlay Thanks |
I narrowed it down to this line taking 50ms for each dependency: spago/src/Spago/Purs/Graph.purs Line 104 in f130b33
I won't manage to have a look at this for a while, but this is a good pointer for anyone that would like to look at it - I suspect the glob code can be improved; we swapped it out for a different implementation in #1220, so 0.93.29 will have a different code path and might be faster - something to try out. |
Hello,
I'm using spago 0.93.35 with purs 0.15.15. My project was building recently, but currently for some unknown reason, in
--verbose
mode it's stuck at:I tried to repeat that
purs graph
command, it does spit out a very large JSON object (containing 1185 keys).Thing is, it's stuck for very long and CPU does crunch something.
Looking at source code, I think it might be decoding that large JSON for so long -- is it possible? And if so, is there a fix for this?
The text was updated successfully, but these errors were encountered: