Alexander Ashitkin created MNG-6773:
---------------------------------------
Summary: Slow 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
synchronized method DefaultProjectBuildingHelper#createProjectRealm invokes
invoke 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. Having this lock softened allows to build
graph faster up to 3..6 times
--
This message was sent by Atlassian Jira
(v8.3.4#803005)