1
0
Fork 0
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:
Eelco Dolstra 2006-05-02 17:12:03 +00:00
parent 11ae2d1e7a
commit b52e711910
3 changed files with 12 additions and 9 deletions

View file

@ -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;