[
https://issues.apache.org/jira/browse/WICKET-6315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-6315.
-------------------------------------
Resolution: Fixed
Fix Version/s: 8.0.0-M4
> Optimize LinkParser by caching the compiled regex Pattern
> ---------------------------------------------------------
>
> Key: WICKET-6315
> URL: https://issues.apache.org/jira/browse/WICKET-6315
> Project: Wicket
> Issue Type: Improvement
> Affects Versions: 8.0.0-M3
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Priority: Minor
> Fix For: 8.0.0-M4
>
>
> At the moment
> org.apache.wicket.extensions.markup.html.basic.LinkParser#addLinkRenderStrategy()
> builds a Map with non-compiler pattern and a strategy.
> Its #parse() method re-compiles the pattern for each and every check.
> This could be optimized by compiling the pattern when the strategy is
> registered and reuse it for the matching in #parse().
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)