excellent! looks like the hash code paths were only part of the puzzle.
I added some screenshots to this issue https://github.com/apache/maven/issues/2481, since it is easier to share graphs there compared to mail attachments. unfortunately the weather is nice so I am not sure how much time I can spend on this the next days, but this doesn't look to me like a showstopper for mvn4 in my opinion (as user) since it can be likely improved via regular updates. best regards, michael On 6/13/25 11:18, Sergey Chernov wrote: > I made a simple multi-module project generator which has some size > parameters. > Please see project description here > https://github.com/maven-turbo-reactor/maven-multiproject-generator > > The good news is that it highlights the performance problem in comparison > between Maven3 and Maven4. > The generated project (which has 4k modules with default config, but zero > java source classes) takes 30sec on Maven3 and 1m40s on Maven4. > > I'd like to point that it also declares usage of maven-enforcer-plugin with > this config: > ``` > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-enforcer-plugin</artifactId> > <version>3.3.0</version> > <executions> > <execution> > <id>enforce</id> > <configuration> > <rules> > <DependencyConvergence> > <uniqueVersions>false</uniqueVersions> > </DependencyConvergence> > </rules> > </configuration> > <goals> > <goal>enforce</goal> > </goals> > </execution> > </executions> > </plugin> > ``` > This plugin was my main suspect for the slowness, but it seems that any > plugin that iterates the dependencies (including any compilation plugin) > are affecting performance on Maven4. If enforcer plugin is removed, the > build is still slow on Maven4 (2.5x slower than Maven3). > > On Thu, Jun 12, 2025 at 1:33 PM Martijn Dashorst <martijn.dasho...@gmail.com> > wrote: > >> On Thu, Jun 12, 2025 at 1:48 AM Michael Bien <mbie...@gmail.com> wrote: >> >>> If there is a public project which hits this bottleneck I could take a >>> look and play >>> with some ideas to try to make this scale better. (I don't really want to >>> spam this thread >>> too much) >>> >> You could take a look at https://github.com/wicketstuff/core >> >> Lots and lots of projects.. >> >> Martijn >> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org