Skip to content
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

[nix-local-build] Recompiling packages with many components is still pretty slow #3049

Closed
ezyang opened this issue Jan 15, 2016 · 2 comments
Closed

Comments

@ezyang
Copy link
Contributor

ezyang commented Jan 15, 2016

nix-local-build has to attempt to recompile EVERY component, even if files from only one component has changed. There seems to be some non-zero latency associated with thinking about a file, so when nix-local-build ends up hitting every component, this combined with GHC's recompilation avoidance latency makes the latency pretty bad.

@dcoutts
Copy link
Contributor

dcoutts commented Feb 1, 2016

To really do this we would need to be able to Setup build (or equiv) a component without it doing its own checks for dependent components. Probably the best approach to that is to go directly to the Cabal lib, bypassing the Setup build CLI API. Alternatively it needs some flag to Setup build to build exactly the given components without also rebuilding their deps.

@ezyang
Copy link
Contributor Author

ezyang commented Aug 15, 2016

Will be fixed by #3662

@ezyang ezyang closed this as completed Aug 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants