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
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93979
13f79535-47bb-0310-9956-
ffa450edef68
}
}
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) {