mirror of
https://github.com/NixOS/nix
synced 2025-06-28 13:41:15 +02:00
* Huge reduction in memory use (2/3 or so on large nix-env -qas
operations): share ATermMaps between DrvInfos.
This commit is contained in:
parent
11ae2d1e7a
commit
b52e711910
3 changed files with 12 additions and 9 deletions
|
@ -4,6 +4,8 @@
|
|||
#include <string>
|
||||
#include <map>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include "eval.hh"
|
||||
|
||||
|
||||
|
@ -20,7 +22,7 @@ public:
|
|||
string name;
|
||||
string system;
|
||||
|
||||
ATermMap attrs;
|
||||
shared_ptr<ATermMap> attrs;
|
||||
|
||||
string queryDrvPath(EvalState & state) const;
|
||||
string queryOutPath(EvalState & state) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue