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

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


commit 596ddb7ed828757821ffef52d642777cecba2b86
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
    (cherry picked from commit c601174268e0ea6cad93a733cecb3a07b2c503a6)

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/596ddb7ed828757821ffef52d642777cecba2b86


-- 
DragonFly BSD source repository





More information about the Commits mailing list