You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/09/11 17:30:00 UTC
[jira] [Closed] (MRESOLVER-68) Add caching around
File.getCanonicalPath
[ https://issues.apache.org/jira/browse/MRESOLVER-68?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MRESOLVER-68.
-----------------------------------
Resolution: Won't Fix
> Add caching around File.getCanonicalPath
> ----------------------------------------
>
> Key: MRESOLVER-68
> URL: https://issues.apache.org/jira/browse/MRESOLVER-68
> Project: Maven Resolver
> Issue Type: Improvement
> Components: resolver
> Reporter: Richard Atkins
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Maven Resolver spends a lot of time calculating the canonical path for a File, and subsequently interning the result, in order to generate an in memory lock object for the File. This can add up to 50% or more of the time in a build, especially when using maven-enforcer-plugin with the bannedDependencies rule with searchTransitive true.
> Caching these lookups will reduce build times, even for well behaved plugins.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)