On 04/09/2014 01:25 PM, Bernhard Voelker wrote:
> I was wondering why strlen() showed up over 3M times when
> running "rm -rf some-dir" - where "some-dir" contained 1M files.
> This was shown by "ltrace -c ...".
> 
> The attached avoids 2M strlen() invocations for this case.
> 
> Sorry that the patch is in an attachment, but "git send-email"
> does not work on the box I was on.
> 
> Have a nice day,
> Berny
> 

Excellent thanks!
This looks correct as dp is invariant over those calls.
Note namelen might be a bit ambiguous as to whether
it's the dirent one or the adjusted fts one.
OK if I s/namelen/dirent_namelen/ and push?

cheers,
Pádraig.

Reply via email to