Replies: 2 comments 3 replies
-
Huh, I just thought to run |
Beta Was this translation helpful? Give feedback.
3 replies
-
I think we can close this and move the suggestions in the above mentioned tickets. Thanks everyone! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've ended up here after investigating some practical issues with using HLS and Cabal, prompted by a Discourse thread about papercuts in the ecosystem. It's become clear to me that the amount of time Cabal takes to rebuild a project after fairly trivial changes to its
.cabal
file is a bottleneck.Adding a module under
other_modules
, or a dependency compatible with the existing set (no solving!) causes rebuilds to take about 10s on my fairly-powerful machine. This is particularly annoying in the early stages of a project where dependencies may be frequently added and removed. For comparison, acabal build
after a trivial change to a source file, without any config changes, can take as little as 0.5s. And a complete no-op build (cabal build && time cabal build
) takes around 0.02s.Before I get in to profiling this myself, I'm just wondering whether any maintainers have a succinct explanation of what's taking all that time, or know of any quick wins?
Beta Was this translation helpful? Give feedback.
All reactions