git: sh: Use dirent.d_type in pathname generation.

Peter Avalos pavalos at crater.dragonflybsd.org
Sun Feb 5 13:05:26 PST 2012


commit c601174268e0ea6cad93a733cecb3a07b2c503a6
Author: Peter Avalos <pavalos at dragonflybsd.org>
Date:   Sun Feb 5 11:20:09 2012 -0800

    sh: Use dirent.d_type in pathname generation.
    
    This improves performance for globs where a slash or another component
    follows a component with metacharacters by eliminating unnecessary
    attempts to open directories that are not.
    
    Obtained-from:  FreeBSD 228942

Summary of changes:
 bin/sh/expand.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c601174268e0ea6cad93a733cecb3a07b2c503a6


-- 
DragonFly BSD source repository





More information about the Commits mailing list