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

Use pre-compiled pattern in DefaultArtifact constructor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Maven Artifact Resolver 1.0.3, Maven Artifact Resolver 1.1.0
    • 1.3.0
    • Resolver
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: