-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Reduce the number of derivations #1605
Conversation
This gives us a way to look up the same derivation rather than recomputing the same derivation multiple times. This gives a 5% to 10% improvement in eval time. Measured with: ``` time nix-instantiate -E '(import ./. {}).pkgs-unstable.haskell-nix.tool "ghc8107" "haskell-language-server" {}' ```
# Conflicts: # builder/make-config-files.nix
…tions # Conflicts: # builder/make-config-files.nix
bors try |
tryBuild failed: |
bors try |
bors try- |
bors try |
tryBuild failed: |
bors try |
tryBuild failed: |
bors try |
tryBuild failed: |
# Conflicts: # lib/call-cabal-project-to-nix.nix # overlays/default.nix
bors try |
tryBuild failed: |
bors try |
tryBuild failed: |
E.g., you're removing usages of
Do you mean when you don't need to rebuild the Haskell code, or when no derivation needs to be built at all? In the latter case, optimising derivations won't do much of a difference anyway.
I'm not sure how fast passing things through the environment is, but it's possible that setting |
…tions # Conflicts: # builder/comp-builder.nix # builder/hspkg-builder.nix # lib/call-cabal-project-to-nix.nix # overlays/bootstrap.nix # overlays/cabal-pkg-config.nix # overlays/default.nix # overlays/haskell.nix
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This work has been merged in #1854 (except pkgconfigSelector which I don't think we need any more) |
configFiles
andghc
outputs of the component derivation.propagatedBuildInputs
andpkgsHostTarget
for component dependencies.