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

perf improvement: generate derivations ourselves, bypassing nix evaluation #11

Open
lf- opened this issue Jan 8, 2023 · 1 comment
Open

Comments

@lf-
Copy link

lf- commented Jan 8, 2023

I was talking to @puckipedia about this project and we were both somewhat surprised that Nix evaluations are invoked for each command invocation via nix-build on some Nix source, rather than emitting .drv files directly and skipping the nix language.

Emitting .drv files directly, then calling nix-store --add and nix-store --realise would save time and avoid the overhead of O(modules) number of Nix evaluations (although I do not have traces of exactly how much).

@ocharles
Copy link
Collaborator

ocharles commented Jan 9, 2023

This was always a plan of mine, but I skipped it because of the (minor) complexity of working out how to get a ghc derivation to depend on. We could probably do that with a single (constant) nix-instantiate though.

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

2 participants