https://issues.apache.org/bugzilla/show_bug.cgi?id=54543
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
Assignee: [email protected]
Reporter: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]