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

IFD breaks parallel building #6299

Open
DavHau opened this issue Mar 22, 2022 · 3 comments
Open

IFD breaks parallel building #6299

DavHau opened this issue Mar 22, 2022 · 3 comments

Comments

@DavHau
Copy link
Member

DavHau commented Mar 22, 2022

Is your feature request related to a problem? Please describe.
Currently IFD seems to break parallel building.
I have put together a flake demonstrating the issue.

Describe the solution you'd like
When evaluation depends on several derivation outputs, build these derivations in parallel.

Describe alternatives you've considered
Wait for RFC92 and refactor existing IFD based code to make use of it.

I think this improvement would be of great value for the community, as some frameworks like haskell.nix are heavily based on IFD and would probably benefit by this change a lot.

@L-as
Copy link
Member

L-as commented Jun 20, 2022

I think this is a more general issue.
IFD completely blocks on a single derivation before evaluating again.
@thufschmitt Are there any plans/blockers for this? It seems easy enough to me.

@thufschmitt
Copy link
Member

@thufschmitt Are there any plans/blockers for this? It seems easy enough to me.

Conceptually it is trivial :) In practice unfortunately I don't think it is. Unbreaking that would require the evaluator to be parallelizable, which it isn't atm. And I don't know that part enough to know exactly how much work that would be, but that doesn't look trivial at all :/

@L-as
Copy link
Member

L-as commented Jun 20, 2022

@aciceri

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants