Skip to content

[MRESOLVER-68] Add caching around File.getCanonicalPath #856

@jira-importer

Description

@jira-importer

Richard Atkins opened MRESOLVER-68 and commented

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.


Issue Links:

  • MRESOLVER-132 Remove synchronization in TrackingFileManager
    ("is superceded by")

Remote Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions