httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/modules/filters mod_include.c
Date Sun, 17 Mar 2002 06:31:22 GMT
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) {
  
  
  

Mime
View raw message