find: do not recurse into directories with depth == --maxdepth
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 26 Sep 2009 23:51:47 +0000 (01:51 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 26 Sep 2009 23:51:47 +0000 (01:51 +0200)
commit6c750f15180ba51ef37c6cfa381b52e6b05d55aa
tree8ac8783178491ebd1a57b53ac03829ab717687bd
parent48f116198d53697d59d03f4e0ff6cd8c04e79660
find: do not recurse into directories with depth == --maxdepth

This may avoid many, many unnecessary stat() calls

function                                             old     new   delta
fileAction                                           718     758     +40

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