mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 04:56:01 +01:00
Be more aggressive in hiding repeated values
We now memoize on Bindings / list element vectors rather than Values, so that e.g. two Values that point to the same Bindings will be printed only once.
This commit is contained in:
parent
ecff9d969a
commit
e9c04c3351
2 changed files with 20 additions and 20 deletions
|
|
@ -115,7 +115,7 @@ private:
|
|||
InternalType internalType;
|
||||
|
||||
friend std::string showType(const Value & v);
|
||||
friend void printValue(std::ostream & str, std::set<const Value *> & seen, const Value & v);
|
||||
friend void printValue(std::ostream & str, std::set<const void *> & seen, const Value & v);
|
||||
|
||||
public:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue