diff options
author | Dan McGee <dan@archlinux.org> | 2010-10-05 11:44:32 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-10-11 10:06:03 -0500 |
commit | dff73a2a69de1c55a0ba9fe75a9f7a900e5ed15b (patch) | |
tree | c122d89c3dbf1480790173b1debd80d0a428f703 /contrib/pacsearch | |
parent | bef19a266bf5d80b68cab02f6a3ccc3fcedbec6d (diff) | |
download | pacman-dff73a2a69de1c55a0ba9fe75a9f7a900e5ed15b.tar.xz |
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>
Diffstat (limited to 'contrib/pacsearch')
0 files changed, 0 insertions, 0 deletions