[
https://issues.apache.org/jira/browse/MRESOLVER-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MRESOLVER-42.
-----------------------------------
Resolution: Fixed
Fixed with
[90dfc9c00470d2469013e0c76681832360d4d7f1|https://git-wip-us.apache.org/repos/asf?p=maven-resolver.git;a=commit;h=90dfc9c00470d2469013e0c76681832360d4d7f1].
> Use pre-compiled pattern in DefaultArtifact constructor
> -------------------------------------------------------
>
> Key: MRESOLVER-42
> URL: https://issues.apache.org/jira/browse/MRESOLVER-42
> Project: Maven Resolver
> Issue Type: Improvement
> Components: resolver
> Affects Versions: Maven Artifact Resolver 1.0.3, Maven Artifact Resolver
> 1.1.0
> Reporter: Robert Varga
> Assignee: Michael Osipov
> Priority: Major
> Fix For: Maven Artifact Resolver 1.1.2
>
>
> DefaultArtifact(String) always compiles the coordinate matching pattern. This
> leads to sub-optimal performance when this constructor is used.
> The pattern being matched should be a constant, so that we instantiate only a
> matcher, which is fast compared to Pattern.compile(String).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)