* 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
|
|
@ -348,6 +348,7 @@ static void queryInstSources(EvalState & state,
|
|||
assertStorePath(*i);
|
||||
|
||||
DrvInfo elem;
|
||||
elem.attrs = shared_ptr<ATermMap>(new ATermMap()); /* ugh... */
|
||||
string name = baseNameOf(*i);
|
||||
unsigned int dash = name.find('-');
|
||||
if (dash != string::npos)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue