You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Alexander Ashitkin (Jira)" <ji...@apache.org> on 2019/10/03 03:33:00 UTC
[jira] [Created] (MNG-6773) Slow key creation in
DefaultExtensionRealmCache under lock
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)