Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] About DefaultDependencyCollector API performance

Eric wrote:

If you put below lines:

System.err.println("processing dependency: " + dependency);

to this method:

private void processDependency( Args args, Results results, List<RemoteRepository> repositories,
                                     DependencySelector depSelector, DependencyManager depManager,
                                     DependencyTraverser depTraverser, VersionFilter verFilter, Dependency dependency,
                                     List<Artifact> relocations, boolean disableVersionManagement )


Then run the test case DefaultDependencyCollectorTest#testCollectMultipleDependencies()

You will get the output:
processing dependency: gid:aid:ext:ver (compile)
processing dependency: gid:aid2:ext:ver (compile)
processing dependency: gid:aid2:ext:ver (compile)

This by itself doesn't denote a performance issue, part of the "processing" there is to check for a previously cached sub graph for reuse.

So again, if you suffer a concrete performance issue, consider to distill it into something shareable so it can be analyzed. E.g. like seen in testCyclicDependenciesBig() of DefaultDependencyCollectorTest or a pre-canned local Maven repo with stub POMs mimcing your project's dependency structure.


Benjamin



Back to the top