Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
stack exec is unreasonably slow #1883
I primarily use
I realize that to completely set up the environment
added a commit
Mar 9, 2016
I've annotated the log with some notes:
So, about 3/5 of the time is being spent decoding the hackage index, which isn't being used.
It's tricky to do anything about the remaining 2/5, because in order to populate the PATH env var, we need to know the ghc and cabal version being used. For system installations managed by stack, we could trust that the version is accurate - we're still asking ghc for its version in that case.
You'll save something like 0.06s by doing