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

ArtifactHandlerManager.getArtifactHandler is inefficient

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.6.2
    • Component/s: core
    • Labels:
      None

      Description

      I'm currently optimizing a very large (2000+ submodule) project. ArtifactHandlerManager.getArtifactHandler is one of the CPU/memory hotspots, because for every `get` call it goes through the Map injected by Plexus. This Map has O( n ) lookup performance, because it is backed by an `Iterable`. It would be much faster to remember the artifact handlers that have already been found.

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hboutemy Herve Boutemy
                Reporter:
                oehme Stefan Oehme
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: