httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 54543] New: Compile regex only when need
Date Sun, 10 Feb 2013 17:20:33 GMT

            Bug ID: 54543
           Summary: Compile regex only when need
           Product: Apache httpd-2
           Version: 2.4.3
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_rewrite
    Classification: Unclassified

Regular expressions are compiled (with ap_pregcomp) when parsing the
configuration regardless if they will end being used or not.

If it makes sense i can submit a patch that will not compile the regex and
substitute the calls to ap_regexec to calls to a function that will compile the
regex if x->regex is null so only really need regex will be compiled

I think this could improve performance a bit, specially when using END/L flags
and when the request matches the first rules, and will not affect performance
in other cases. Anyway i could implement this as an option if you guys think
that it will be better that way.

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message