From b52e71191094f564d7b7484b89e47e710bb94bdc Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 2 May 2006 17:12:03 +0000 Subject: * Huge reduction in memory use (2/3 or so on large nix-env -qas operations): share ATermMaps between DrvInfos. --- src/libexpr/get-drvs.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libexpr/get-drvs.hh') 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 #include +#include + #include "eval.hh" @@ -20,7 +22,7 @@ public: string name; string system; - ATermMap attrs; + shared_ptr attrs; string queryDrvPath(EvalState & state) const; string queryOutPath(EvalState & state) const; -- cgit 1.4.1