922697c8b2
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. |
||
---|---|---|
.. | ||
eval.cc | ||
eval.hh | ||
get-drvs.cc | ||
get-drvs.hh | ||
lexer.l | ||
Makefile.am | ||
nix.sdf | ||
nixexpr-ast.def | ||
nixexpr.cc | ||
nixexpr.hh | ||
parser.cc | ||
parser.hh | ||
parser.y | ||
primops.cc |