mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 05:26:02 +01:00
Call queryMissing() prior to building
Without this, substitute info is fetched sequentially, which is superslow. In the old UI (e.g. nix-build), we call printMissing(), which calls queryMissing(), thereby preheating the binary cache cache. But the new UI doesn't do that.
This commit is contained in:
parent
fd73c1e20a
commit
bbdf08bc0f
2 changed files with 14 additions and 0 deletions
|
|
@ -107,6 +107,8 @@ void Store::queryMissing(const PathSet & targets,
|
|||
PathSet & willBuild_, PathSet & willSubstitute_, PathSet & unknown_,
|
||||
unsigned long long & downloadSize_, unsigned long long & narSize_)
|
||||
{
|
||||
Activity act(*logger, lvlDebug, actUnknown, "querying info about missing paths");
|
||||
|
||||
downloadSize_ = narSize_ = 0;
|
||||
|
||||
ThreadPool pool;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue