-
Notifications
You must be signed in to change notification settings - Fork 846
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
Stack is slow to print "> using precompiled package" #6680
Comments
@chreekat, I don't know about speed, not least because Stack is likely doing things in different threads and that makes the interleaved debug output difficult to unpick, but I think Stack is behaving as expected, as follows:
|
For example, building Stack itself, if I add
EDIT: I wonder what stops Stack from using a precompiled package in some cases. To investigate ... |
Aha, I see. I was indeed naively assuming single-threaded output. I'm not immediately convinced that accounts for everything, though. The dep I changed was pretty close to the top of the graph - it should not have evicted very many packages. I'm just waving my hands, though, because I haven't tried to line up lines of output with the package being processed. |
The first ~dozen are fast, but eventually it slows down.
I ran
stack -v build
. Below are all the debug messages between three of the "> using precompiled package" lines. (The entire output is also attached). If you look at the timestamps,indexed-traversable
is obviously fast, andansi-terminal
is very slow by comparison.All of the other slow packages also have a bunch of debug output and sqlite activity.
This behavior showed up unexpectedly when I changed one of my dependencies. I added an extra-dep that overrode version of
amazonka
that was being used from the snapshot. Although this won't help with repro, I'll show the change that triggered the behavior for context:Before that change, the project built quickly and didn't print any "using precompiled package" messages, slowly or otherwise.
Here's the log "snippet":
Stack version
Method of installation
NixOS package manager
Platform
NixOS 24.11.713790.2b4230bf03de (Vicuna)
The text was updated successfully, but these errors were encountered: