Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 55715 invoked by uid 500); 17 Mar 2002 06:31:24 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 55704 invoked by uid 500); 17 Mar 2002 06:31:24 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 17 Mar 2002 06:31:22 -0000 Message-ID: <20020317063122.26890.qmail@icarus.apache.org> From: brianp@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/modules/filters mod_include.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N brianp 02/03/16 22:31:22 Modified: modules/filters mod_include.c Log: Another optimization for find_end_sequence: once we're in the middle of parsing a tag, consume the entire tag in a quick loop, rather than jumping back to the outer state-machine loop for each character Revision Changes Path 1.201 +6 -1 httpd-2.0/modules/filters/mod_include.c Index: mod_include.c =================================================================== RCS file: /home/cvs/httpd-2.0/modules/filters/mod_include.c,v retrieving revision 1.200 retrieving revision 1.201 diff -u -r1.200 -r1.201 --- mod_include.c 17 Mar 2002 06:04:33 -0000 1.200 +++ mod_include.c 17 Mar 2002 06:31:22 -0000 1.201 @@ -626,7 +626,12 @@ } } else if (ctx->state == PARSE_TAG) { - ctx->tag_length++; + const char *tmp = c; + do { + c++; + } while ((c < buf + len) && (*c != *str)); + ctx->tag_length += (c - tmp); + continue; } else { if (ctx->parse_pos != 0) {