12 Oct
2010
12 Oct
'10
12:27 a.m.
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? Allan