Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6631

DefaultArtifactVersion.parseVersion is inefficient

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.6.0
    • 3.6.2
    • Core
    • None

    Description

      I'm currently optimizing a very large (2000+ submodule) project. DefaultArtifactVersion.parseVersion is one of the CPU/memory hotspots, because it uses exceptions for control flow. Using if-statements instead would be much faster.

      See https://github.com/apache/maven/pull/242

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              oehme Stefan Oehme
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: