maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Varga (JIRA)" <>
Subject [jira] [Created] (MRESOLVER-42) DefaultArtifact(String) is inefficient
Date Sun, 11 Feb 2018 23:06:00 GMT
Robert Varga created MRESOLVER-42:

             Summary: DefaultArtifact(String) is inefficient
                 Key: MRESOLVER-42
             Project: Maven Resolver
          Issue Type: Improvement
          Components: resolver
    Affects Versions: Maven Artifact Resolver 1.1.0, Maven Artifact Resolver 1.0.3
            Reporter: Robert Varga

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

View raw message