You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hervé Boutemy (JIRA)" <ji...@apache.org> on 2019/04/27 17:14:00 UTC
[jira] [Closed] (MNG-6632)
ArtifactHandlerManager.getArtifactHandler is inefficient
[ https://issues.apache.org/jira/browse/MNG-6632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hervé Boutemy closed MNG-6632.
------------------------------
Resolution: Fixed
Assignee: Hervé Boutemy
Fix Version/s: 3.6.2
fixed in https://gitbox.apache.org/repos/asf?p=maven.git&a=commit&h=1e03388d5bd3b84b1c637fbb06010a00834cfa4b
thank you
> ArtifactHandlerManager.getArtifactHandler is inefficient
> --------------------------------------------------------
>
> Key: MNG-6632
> URL: https://issues.apache.org/jira/browse/MNG-6632
> Project: Maven
> Issue Type: Bug
> Components: core
> Affects Versions: 3.6.0
> Reporter: Stefan Oehme
> Assignee: Hervé Boutemy
> Priority: Major
> Fix For: 3.6.2
>
>
> 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]
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)