mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 14:32:42 +01:00
lookupInFlakeCache(): Fix O(n) time lookup
This commit is contained in:
parent
d1f20e3510
commit
d2e1d4916a
4 changed files with 18 additions and 17 deletions
|
|
@ -49,6 +49,8 @@ struct FlakeRef
|
|||
|
||||
bool operator ==(const FlakeRef & other) const = default;
|
||||
|
||||
auto operator <=>(const FlakeRef &) const = default;
|
||||
|
||||
FlakeRef(fetchers::Input && input, const Path & subdir)
|
||||
: input(std::move(input)), subdir(subdir)
|
||||
{ }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue