[ 
https://issues.apache.org/jira/browse/WICKET-6315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15847428#comment-15847428
 ] 

ASF subversion and git services commented on WICKET-6315:
---------------------------------------------------------

Commit 2b013c5d4fe86f6a813120c248e115ca3f8ad3cd in wicket's branch 
refs/heads/master from [~mgrigorov]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=2b013c5 ]

WICKET-6315 Optimize LinkParser by caching the compiled regex Pattern


> 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)

Reply via email to