mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
* Store lists as lists of pointers to values rather than as lists of
values. This improves sharing and gives another speed up. Evaluation of the NixOS system attribute is now almost 7 times faster than the old evaluator.
This commit is contained in:
parent
e41b5828db
commit
04c4bd3624
7 changed files with 41 additions and 34 deletions
|
@ -97,7 +97,7 @@ static void printValueAsXML(EvalState & state, bool strict, Value & v,
|
|||
case tList: {
|
||||
XMLOpenElement _(doc, "list");
|
||||
for (unsigned int n = 0; n < v.list.length; ++n)
|
||||
printValueAsXML(state, strict, v.list.elems[n], doc, context, drvsSeen);
|
||||
printValueAsXML(state, strict, *v.list.elems[n], doc, context, drvsSeen);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue