ls: reduce memory consumption and speed up (don't do redundant [l]stat)
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 13 May 2011 15:28:09 +0000 (17:28 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 13 May 2011 15:28:09 +0000 (17:28 +0200)
commit2a81639534bcfd075dee12eacc6c45e657e4488e
tree487a137e4d3abe91e77e7514038ef0e88c8489f4
parent66ca241dcae32d7932c58398d27945d43702fc4e
ls: reduce memory consumption and speed up (don't do redundant [l]stat)

function                                             old     new   delta
my_stat                                              110     278    +168
splitdnarray                                         120     118      -2
ls_main                                              769     765      -4
list_single                                          961     931     -30
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 168/-36)           Total: 132 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/ls.c