Martin Grigorov created WICKET-6315:
---------------------------------------
Summary: 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
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)