On 08/24/2010 04:22 PM, Nick Welch wrote:

URL:
   <http://savannah.gnu.org/bugs/?30868>

In lib/savedir.c, in isdir1() (or the code that calls it), the d_type member
of the dirent struct can be checked instead of doing a comparatively expensive
isdir() (which calls stat()).

Thanks for the suggestion; adding bug-gnulib, since this code is maintained there and shared by several projects.

--
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Reply via email to