[pacman-dev] [GIT] The official pacman repository branch, master, updated. v3.4.1-88-g46ffd34

Dan McGee dpmcgee at gmail.com
Mon Oct 11 18:38:40 EDT 2010


On Mon, Oct 11, 2010 at 5:27 PM, Allan McRae <allan at archlinux.org> wrote:
> On 12/10/10 01:33, Dan McGee wrote:
>
>> commit dff73a2a69de1c55a0ba9fe75a9f7a900e5ed15b
>> Author: Dan McGee<dan at archlinux.org>
>> Date:   Tue Oct 5 11:44:32 2010 -0500
>>
>>     Avoid stat call to determine is_directory if possible
>>
>>     On Linux and OS X, we can determine if an entry obtained through a
>> readdir()
>>     call is a directory without also having to stat it. This can save a
>>     significant number of syscalls. The performance increase isn't
>> dramatic, but
>>     it could be on some platforms (e.g. Cygwin) so it shouldn't hurt to
>> use this
>>     unconditionally where supported.
>>
>>     Signed-off-by: Dan McGee<dan at archlinux.org>
>>
>
> I thought we were dropping that one as it actually made things slowed?

Xavier and I talked about it, and my numbers were a bit flawed due to
having a debug-compiled pacman and comparing it against the system
pacman. We also figured it would help a lot on patches with a slow
stat (Cygwin, etc.).

-Dan


More information about the pacman-dev mailing list