lix/src
Eelco Dolstra 75989bdca7 Make computeFSClosure() single-threaded again
The fact that queryPathInfo() is synchronous meant that we needed a
thread for every concurrent binary cache lookup, even though they end
up being handled by the same download thread. Requiring hundreds of
threads is not a good idea. So now there is an asynchronous version of
queryPathInfo() that takes a callback function to process the
result. Similarly, enqueueDownload() now takes a callback rather than
returning a future.

Thus, a command like

  nix path-info --store https://cache.nixos.org/ -r /nix/store/slljrzwmpygy1daay14kjszsr9xix063-nixos-16.09beta231.dccf8c5

that returns 4941 paths now takes 1.87s using only 2 threads (the main
thread and the downloader thread). (This is with a prewarmed
CloudFront.)
2016-09-16 18:54:14 +02:00
..
boost Force stack trace for boost format errors 2016-03-02 15:46:07 +01:00
buildenv Fix Fedora build 2016-08-30 13:56:22 +02:00
download-via-ssh More cleanup 2015-07-20 01:16:16 +02:00
libexpr Enable HTTP/2 support 2016-09-14 16:36:02 +02:00
libmain Remove $NIX_DB_DIR 2016-08-10 18:05:35 +02:00
libstore Make computeFSClosure() single-threaded again 2016-09-16 18:54:14 +02:00
libutil Make computeFSClosure() single-threaded again 2016-09-16 18:54:14 +02:00
nix nix path-info: Add some more examples 2016-09-14 18:20:11 +02:00
nix-build Fix build on GCC 4.9 2016-09-12 13:22:23 +02:00
nix-channel Enable HTTP/2 support 2016-09-14 16:36:02 +02:00
nix-collect-garbage Eliminate reserveSpace flag 2016-02-24 17:44:55 +01:00
nix-daemon Mark content-addressed paths in the Nix database and in .narinfo 2016-08-10 18:05:35 +02:00
nix-env nix path-info: Add --json flag 2016-08-29 17:29:24 +02:00
nix-instantiate Allow setting the state directory as a store parameter 2016-06-02 16:02:48 +02:00
nix-prefetch-url Enable HTTP/2 support 2016-09-14 16:36:02 +02:00
nix-store Add a "root" parameter to local stores 2016-08-10 18:05:35 +02:00
resolve-system-dependencies iterate through fat_headers correctly 2016-08-17 10:24:11 -07:00