about summary refs log tree commit diff
path: root/src/libexpr/get-drvs.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-05-02T17·12+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-05-02T17·12+0000
commitb52e71191094f564d7b7484b89e47e710bb94bdc (patch)
treeaa36002c9e96b31e258e82c903b08a6db03410b0 /src/libexpr/get-drvs.hh
parent11ae2d1e7af05c3410a368338c7d13a49c2d2ccd (diff)
* Huge reduction in memory use (2/3 or so on large nix-env -qas
  operations): share ATermMaps between DrvInfos.

Diffstat (limited to 'src/libexpr/get-drvs.hh')
-rw-r--r--src/libexpr/get-drvs.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libexpr/get-drvs.hh b/src/libexpr/get-drvs.hh
index e692a5c660e1..2b88111b2c84 100644
--- a/src/libexpr/get-drvs.hh
+++ b/src/libexpr/get-drvs.hh
@@ -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;