[ 
https://issues.apache.org/jira/browse/MNG-6773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Ashitkin updated MNG-6773:
------------------------------------
    Summary: Slow extension key creation in DefaultExtensionRealmCache under 
lock  (was: Slow key creation in DefaultExtensionRealmCache under lock)

> 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 
> 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)

Reply via email to