mirror of
https://github.com/NixOS/nix.git
synced 2025-12-19 23:41:07 +01:00
Persistently cache InputAccessor::fetchToStore()
This especially speeds up repeated evaluations that copy a large
source tree (e.g. 'nix.nixPath = [ "nixpkgs=${nixpkgs}" ];').
This commit is contained in:
parent
2e0d63caf6
commit
beac2e67cd
4 changed files with 34 additions and 6 deletions
|
|
@ -141,8 +141,7 @@ struct InputScheme
|
|||
virtual std::optional<CanonPath> isRelative(const Input & input) const
|
||||
{ return std::nullopt; }
|
||||
|
||||
virtual std::optional<std::string> getFingerprint(ref<Store> store, const Input & input) const
|
||||
{ return std::nullopt; }
|
||||
virtual std::optional<std::string> getFingerprint(ref<Store> store, const Input & input) const;
|
||||
};
|
||||
|
||||
void registerInputScheme(std::shared_ptr<InputScheme> && fetcher);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue