Uploaded image for project: 'Maven Resolver'
  1. Maven Resolver
  2. MRESOLVER-42

Use pre-compiled pattern in DefaultArtifact constructor

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Maven Artifact Resolver 1.0.3, Maven Artifact Resolver 1.1.0
    • Fix Version/s: 1.3.0
    • Component/s: resolver
    • Labels:
      None

      Description

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

        Attachments

          Activity

            People

            • Assignee:
              michael-o Michael Osipov
              Reporter:
              nite Robert Varga
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: