about summary refs log tree commit diff
path: root/src/libutil
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-07-21T15·40+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-07-21T15·50+0200
commitd57981bac488e5928218e0eaeae58bd817c74727 (patch)
tree9c2cc5a3dce844089c58892bf3cbf7bb300ef115 /src/libutil
parent6f70fcd1c574e0d4900b5d0d55d22d6053e9826c (diff)
Store::queryMissing(): Use a thread pool
For one particular NixOS configuration, this cut the runtime of
"nix-store -r --dry-run" from 6m51s to 3.4s. It also fixes a bug in
the size calculation that was causing certain paths to be counted
twice, e.g. before:

  these paths will be fetched (1249.98 MiB download, 2995.74 MiB unpacked):

and after:

  these paths will be fetched (1219.56 MiB download, 2862.17 MiB unpacked):
Diffstat (limited to 'src/libutil')
0 files changed, 0 insertions, 0 deletions