On Mon, Oct 11, 2010 at 5:27 PM, Allan McRae <allan@archlinux.org> wrote:
On 12/10/10 01:33, Dan McGee wrote:
commit dff73a2a69de1c55a0ba9fe75a9f7a900e5ed15b Author: Dan McGee<dan@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@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