bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] fts: avoid unnecessary strlen calls


From: Bernhard Voelker
Subject: [PATCH] fts: avoid unnecessary strlen calls
Date: Wed, 09 Apr 2014 14:25:44 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

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

Attachment: 0001-fts-avoid-unnecessary-strlen-calls.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]