Files
nix/src/libutil
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
..
2016-07-11 15:44:44 -04:00
2016-04-21 14:34:46 +02:00
2016-04-21 14:34:46 +02:00
2016-05-04 16:16:53 +02:00
2016-05-04 16:16:53 +02:00
2016-04-29 13:57:08 +02:00
2016-07-21 18:39:32 +02:00
2016-04-20 14:12:38 +02:00
2016-08-30 17:38:09 +02:00
2016-08-30 17:38:09 +02:00
2016-05-31 03:20:11 -04:00
2016-04-25 19:18:45 +02:00
2014-12-14 01:51:14 +01:00
2016-04-08 18:07:13 +02:00
2016-04-25 19:18:45 +02:00
2015-07-17 20:13:56 +02:00
2014-02-26 18:55:18 +01:00