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

Both with CF, gradle 5+ much slower than gradle 4 #3300

Closed
entonio opened this issue May 11, 2020 · 3 comments
Closed

Both with CF, gradle 5+ much slower than gradle 4 #3300

entonio opened this issue May 11, 2020 · 3 comments

Comments

@entonio
Copy link

entonio commented May 11, 2020

Hi.
This is not a bug report, it's a question on what I should investigate before opening one.
(It's a copy of kelloggm/checkerframework-gradle-plugin#63)

I'm trying to migrate a number of projects to more recent libs and JDK, as mentioned elsewhere.

I have a project (no modules, no subprojects) that spends 85s on compileJava with Gradle 4.x. It takes 325s with Gradle 5 and 6. If not using the CF, it takes 29s in either Gradle. These measurings were very consistent, down to the second. I've tried changing a number of other factors, but the relevant one is the combination of the CF with Gradle 5+. I should mention these are numbers for JDK 8. With JDK 11 (source level 8), the numbers are 115s (Gradle 4), 135s (Gradle 5 and 6), and 35s (no CF) -- so, not the same magnitude of slowerness.

Where could the problem be? How can I debug it?

@kelloggm
Copy link
Contributor

Sorry we missed your previous post! Unfortunately, I don't really have much more information than you do.

One possibility is #2401, but that concerns something the Checker Framework doesn't do (support incremental compilation for Gradle projects). However, that change in Gradle happened in version 4.7, so the support for incremental processors on Gradle's end might be the problem.

@mernst
Copy link
Member

mernst commented May 13, 2020

Your bug report is from a few releases ago. Could you please confirm that you have the same problem when using the latest release of the Checker Framework and of the Checker Framework Gradle Plugin?

Could you help to determine whether the problem is with Gradle, with the Checker Framework, or with both? Could you run Gradle with --debug to obtain the javac command line (it contains -processor), then time that command on both Java 8 and Java 11? That will show how much of the time is due to the Checker Framework.

You point out that the slowdown on JDK 8 when using Gradle 4 vs 5/6 is ridiculous. Are you also concerned about the slowdown from 115s to 135s when using JDK 11? Or are you only concerned about JDK 8?

@mernst
Copy link
Member

mernst commented Jun 15, 2020

I'm closing this because we didn't hear back with sufficient information to reproduce the problem.

@mernst mernst closed this as completed Jun 15, 2020
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