From: William A. Rowe Jr Date: Mon, 22 Apr 2002 16:43:46 +0000 (+0000) Subject: Small optimization, if we are behind (at the 5th segment, for example), X-Git-Tag: 2.0.36~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0468e9b273c1e8c0e037f7b4cb1c0b7216db883b;p=thirdparty%2Fapache%2Fhttpd.git Small optimization, if we are behind (at the 5th segment, for example), catch up the segment-count-sorted directory list without string compares. Mostly affects win32 which jumps from seg 0 (root) to 4 for UNC path names. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94755 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/request.c b/server/request.c index 42c8fe046b0..b871877ae50 100644 --- a/server/request.c +++ b/server/request.c @@ -764,6 +764,7 @@ AP_DECLARE(int) ap_directory_walk(request_rec *r) * Otherwise, skip over the mismatches. */ if (entry_core->d_components + && (entry_core->d_components < seg) && (entry_core->d_is_fnmatch ? (apr_fnmatch(entry_core->d, r->filename, FNM_PATHNAME) != APR_SUCCESS)