[
https://issues.apache.org/jira/browse/WW-4488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart updated WW-4488:
------------------------------
Affects Version/s: (was: 2.3.20)
> Improve performance of DefaultExcludedPatternsChecker
> -----------------------------------------------------
>
> Key: WW-4488
> URL: https://issues.apache.org/jira/browse/WW-4488
> Project: Struts 2
> Issue Type: Improvement
> Components: Core Interceptors
> Affects Versions: 2.3.20
> Reporter: Jasper Rosenberg
> Priority: Trivial
> Fix For: 2.3.24
>
>
> The current set of patterns can be consolidated without sacrificing
> readability for a significant gain in efficiency. I ran both sets of
> equivalent patterns against the three test methods in
> DefaultExcludedPatternsCheckerTest 100,000 times, and the consolidated
> pattern was 3 times faster.
> {code:java}
> public static final String[] EXCLUDED_PATTERNS = {
> "(.*\\.|^|.*|\\[('|\"))\\bclass(\\.|('|\")]|\\[).*",
>
> "(^|.*#)(dojo|struts|session|request|application|servlet(Request|Response)"
> + "|parameters|context|_memberAccess)(\\.|\\[).*"
> };
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)