about summary refs log tree commit diff
path: root/release.nix
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2011-08-06T19·45+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-08-06T19·45+0000
commit2d663b502da16d6dc480bff7f58297d176d04246 (patch)
tree110fdbb8a5347f1a544ab994711173fa569f733f /release.nix
parent510033e78376987ca358cebfa020754e61733543 (diff)
* Cache the result of file evaluation (i.e, memoize evalFile()). This
  prevents files from being evaluated and stored as values multiple
  times.  For instance, evaluation of the ‘system’ attribute in NixOS
  causes ‘nixpkgs/pkgs/lib/lists.nix’ to be evaluated 2019 times.

  Caching gives a modest speedup and a decent memory footprint
  reduction (e.g., from 1.44s to 1.28s, and from 81 MiB to 59 MiB with
  GC_INITIAL_HEAP_SIZE=100000 on my system).

Diffstat (limited to 'release.nix')
0 files changed, 0 insertions, 0 deletions