-
Notifications
You must be signed in to change notification settings - Fork 63
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
Gradle build is slow again #1874
Comments
There might still be some problems in the gradle configurations. Something I still do not fully understand is when gradle actually evaluates tasks. I am also not sure what "created during configuration" means. As war as I understand, gradle always executes the full configuration, collects all tasks and configures them, but does not execute the tasks themselves. Thus, I would assume that "created during configuration" just means the task was discovered and configured, but not executed. What is still mysterious to me, is which parts of a task are actually processed during configuration and which later during execution. Interpreting the numbers you show, it looks like some task(s) have quite a high overhead during configuration. We can try two things:
I think the ideal solution would be to do both. |
Update: I just now realized that part of the reason why "configuring" took so long is that I had a very large number of untracked files in various |
Interesting, except for the
Perhaps the required pattern matching on a large file tree is what slows gradle down. |
Seems like we could easily remove a bunch of globstars and substitute them with relative paths... |
In recent days (I am not sure when) I started finding
cli:lfc:run
taking 45 seconds to a minute. IIRC this was fairly fast after #1779 was merged. I ran the task with the--scan
flag and found this:The following is strange because I do not see how this triggers the
spotlessLinguaFranca
task, and because when I rancli:lfc:run
with the--dry-run
option, I did not see any Spotless tasks.The following is strange because I did not edit any Kotlin files:
Configuration and Kotlin compilation appear to account for the most the time spent in this case, and much more time is spent in configuration than in anything else.
The text was updated successfully, but these errors were encountered: