summary refs log tree commit diff
path: root/src/libmain
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-13 14:58:54 -0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-13 14:58:54 -0400
commit3e89ef597ce00dbf82a937aad9efab3c9c7b6dcf (patch)
tree60d4896f8c8b063ce7d2354fb357da9a2a13c0ba /src/libmain
parent9c2d63084bd4f6a04210cd52b4fce054d248bc6b (diff)
downloadguix-3e89ef597ce00dbf82a937aad9efab3c9c7b6dcf.tar.gz
Optimise concatenating a list to an empty list
More precisely, in concatLists, if all lists except one are empty,
then just return the non-empty list.  This reduces the number of list
element allocations by 32% when evaluating a NixOS system
configuration.
Diffstat (limited to 'src/libmain')
0 files changed, 0 insertions, 0 deletions