Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.0-m1 slower than 0.8.2 #758

Closed
ppalaga opened this issue Dec 21, 2022 · 7 comments
Closed

1.0.0-m1 slower than 0.8.2 #758

ppalaga opened this issue Dec 21, 2022 · 7 comments
Milestone

Comments

@ppalaga
Copy link
Contributor

ppalaga commented Dec 21, 2022

When building Camel Quarkus with these changes apache/camel-quarkus#4355 in place using

mvnd clean install -Dquickly

1.0.0-m1 is slower than 0.8.2 by more than 10 seconds.

At the first sight the initial scanning of Maven modules takes much longer. It is ~9 seconds with 0.8.2, but ~19 sec with 1.0.0-m1.

Is this expected, @gnodet ?

@ppalaga
Copy link
Contributor Author

ppalaga commented Dec 21, 2022

Scanning for projects... takes ~10 seconds even when I am in a directory where there is just a single project.

@gnodet
Copy link
Contributor

gnodet commented Dec 21, 2022

Scanning for projects... takes ~10 seconds even when I am in a directory where there is just a single project.

That's https://issues.apache.org/jira/browse/MNG-7646

@gnodet
Copy link
Contributor

gnodet commented Dec 21, 2022

When building Camel Quarkus with these changes apache/camel-quarkus#4355 in place using

mvnd clean install -Dquickly

1.0.0-m1 is slower than 0.8.2 by more than 10 seconds.

At the first sight the initial scanning of Maven modules takes much longer. It is ~9 seconds with 0.8.2, but ~19 sec with 1.0.0-m1.

Is this expected, @gnodet ?

I'm aware of the problem, and no this is not really acceptable imho. I raised MNG-7647.

@mthmulders
Copy link

even when I am in a directory where there is just a single project.

Do you mean a directory that is part of a multi-module project, but has no child modules? Or do you mean a directory that has a single project, i.e. not part of multi-module project?

@ppalaga
Copy link
Contributor Author

ppalaga commented Dec 22, 2022

even when I am in a directory where there is just a single project.

Do you mean a directory that is part of a multi-module project, but has no child modules?

Yes, exactly this.

@mthmulders
Copy link

Yes, exactly this.

Thanks for clarifying.

I'm wondering if there's a measurable difference if you disable build/consumer POM decoupling. From MNG-6656, it should be possible to disable that with -Dmaven.experimental.buildconsumer=true. Is that something you could try, please?

@gnodet
Copy link
Contributor

gnodet commented Dec 22, 2022

I haven't pinpoint the exact problem, however mvnd 1.0.0-m1 is noticeably slower than 0.8.2. More significant, running mvn foo (so that all projects are parsed but no plugin is executed) was expectedly faster with mvnd 0.8.2 than maven 3.8.6, but mvnd 1.0.0-m1 is slower than maven 4.0.0-alpha-3.
This clearly points toward a problem in mvnd 1.0.0-m1 imho...

gnodet added a commit to gnodet/mvnd that referenced this issue Dec 22, 2022
@gnodet gnodet closed this as completed in 417ed7e Dec 23, 2022
@gnodet gnodet added this to the 1.0.0-m2 milestone Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants