Skip to content
Snippets Groups Projects
Commit 922697c8 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Big speedup (factor > 2.5) in all nix-env operations that do actual

  instantiation, e.g. "nix-env -i" and "nix-env -qas" (but not
  "nix-env -qa").  It turns out that many redundant calls to
  addToStore(path) were made, which reads and hashes the entire path.
  For instance, the bash bootstrap binary in Nixpkgs would be read and
  hashed many times.  As a result nix-env would spend around 92% of
  its time in the function sha256_block (according to callgrind).
  Some simple memoization fixes this.
parent 6dca5c90
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment