[
https://issues.apache.org/jira/browse/MNG-6773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexander Ashitkin updated MNG-6773:
------------------------------------
Description:
synchronized method DefaultProjectBuildingHelper#createProjectRealm invokes io
under lock:
{code:java}
public CacheKey( List<Artifact> extensionArtifacts )
return new CacheKey( extensionArtifacts );
public Key createKey( List<Artifact> extensionArtifacts )
final ExtensionRealmCache.Key extensionKey =
extensionRealmCache.createKey( artifacts );
final ExtensionRealmCache.Key extensionKey =
extensionRealmCache.createKey( artifacts );
extensionRecord = extensionRealmCache.get( extensionKey );
{code}
That prevents graph build scaling in multithreaded implementation and slows
down build in general. Having this lock softened allows to build graph faster
up to 3..6 times for interim results processing
was:
synchronized method DefaultProjectBuildingHelper#createProjectRealm invokes io
under lock:
{code:java}
public CacheKey( List<Artifact> extensionArtifacts )
return new CacheKey( extensionArtifacts );
public Key createKey( List<Artifact> extensionArtifacts )
final ExtensionRealmCache.Key extensionKey =
extensionRealmCache.createKey( artifacts );
final ExtensionRealmCache.Key extensionKey =
extensionRealmCache.createKey( artifacts );
extensionRecord = extensionRealmCache.get( extensionKey );
{code}
That prevents graph build scaling in multithreaded implementation and slows
down build in general. Having this lock softened allows to build graph faster
up to 3..6 times
> Slow extension key creation in DefaultExtensionRealmCache under lock
> --------------------------------------------------------------------
>
> Key: MNG-6773
> URL: https://issues.apache.org/jira/browse/MNG-6773
> Project: Maven
> Issue Type: Improvement
> Components: Artifacts and Repositories, Dependencies
> Affects Versions: 3.6.2
> Reporter: Alexander Ashitkin
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> synchronized method DefaultProjectBuildingHelper#createProjectRealm invokes
> io under lock:
> {code:java}
> public CacheKey( List<Artifact> extensionArtifacts )
> return new CacheKey( extensionArtifacts );
> public Key createKey( List<Artifact> extensionArtifacts )
> final ExtensionRealmCache.Key extensionKey =
> extensionRealmCache.createKey( artifacts );
> final ExtensionRealmCache.Key extensionKey =
> extensionRealmCache.createKey( artifacts );
> extensionRecord = extensionRealmCache.get( extensionKey
> ); {code}
> That prevents graph build scaling in multithreaded implementation and slows
> down build in general. Having this lock softened allows to build graph faster
> up to 3..6 times for interim results processing
--
This message was sent by Atlassian Jira
(v8.3.4#803005)