Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Optimize compilation time by adjusting the order of the repository #1575

Merged

Conversation

penkzhou
Copy link
Contributor

@penkzhou penkzhou commented Oct 6, 2023

ref: link

Optimize repository order
When Gradle resolves dependencies, it searches through each repository in the declared order. To reduce the time spent searching for dependencies, declare the repository hosting the largest number of your dependencies first. This minimizes the number of network requests required to resolve all dependencies.

current project repository library fetch time stat:
Screenshot 2023-10-06 at 11 52 32

@chrisbanes chrisbanes merged commit 089d687 into chrisbanes:main Oct 6, 2023
6 of 7 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants