Guillaume Smet created MRESOLVER-586:
----------------------------------------

             Summary: In typical setups, DefaultArtifact copies the same maps 
over and over again
                 Key: MRESOLVER-586
                 URL: https://issues.apache.org/jira/browse/MRESOLVER-586
             Project: Maven Resolver
          Issue Type: Improvement
          Components: Resolver
    Affects Versions: 1.9.21
            Reporter: Guillaume Smet


h2. Context

This is part of some work we are trying to do to reduce the build time usage 
memory of Quarkus.
We discussed this a bit with Tamas.
While this doesn't constitute a fix for our main issue, it should be an easy 
win.

h2. Problem

We have a BOM with 2000+ entries and in `ArtifactDescriptorReaderDelegate`, the 
managed dependencies are copied to the descriptors using the `convert` method 
that in turn will create a new DefaultArtifact.
Most of these DefaultArtifacts contain a copy of the very same 
`type.getProperties()` as they don't have specific artifact properties.

Improving the DefaultArtifact#merge() method to avoid the copy when the 
artifact doesn't have any specific properties would already be an easy win.

PR to come.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to