Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/add.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-10-05 11:44:32 -0500
committerDan McGee <dan@archlinux.org>2010-10-11 10:06:03 -0500
commitdff73a2a69de1c55a0ba9fe75a9f7a900e5ed15b (patch)
treec122d89c3dbf1480790173b1debd80d0a428f703 /lib/libalpm/add.c
parentbef19a266bf5d80b68cab02f6a3ccc3fcedbec6d (diff)
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 'lib/libalpm/add.c')
0 files changed, 0 insertions, 0 deletions