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

Use Gradle's configuration avoidance APIs #195

Merged
merged 12 commits into from
Sep 10, 2020

Conversation

puboe
Copy link
Contributor

@puboe puboe commented Sep 8, 2020

Replaced eager APIs with Gradle's configuration avoidance APIs wherever possible to reduce the number of tasks created and configured during configuration phase.

There's still plenty of room for improvement but managed to reduce the number of created tasks for the sample project from 231 to 177.

This is before with 231 tasks and plenty of them created immediately
Screen Shot 2020-09-08 at 21 47 36

and this is after
Screen Shot 2020-09-08 at 21 49 06

Also, this APIs require Gradle 4.9 or later, but since it's more than 2 years old now I figured it wouldn't be much of a problem.

@kezong kezong merged commit e584c4f into kezong:master Sep 10, 2020
@kezong
Copy link
Owner

kezong commented Sep 10, 2020

great job! thank you.

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

Successfully merging this pull request may close these issues.

2 participants