Huge Java project in IDEA

已回答

I have a huge java project with many dependencies - which is slow to load: https://github.com/open-telemetry/opentelemetry-java-instrumentation

what tricks could I use to speed this up?

e.g. not indexing dependencies

I tried unloading some modules - but the modules themselves don't have that much code.

I would totally tolerate if the classes from my dependencies would not be indexed.

4

Hi,

> what tricks could I use to speed this up?
e.g. not indexing dependencies
I tried unloading some modules - but the modules themselves don't have that much code.
I would totally tolerate if the classes from my dependencies would not be indexed.

There is no way in the IDEA to not index dependencies.
We have related feature requests about it here that you could vote for updates.
https://youtrack.jetbrains.com/issue/IDEA-321510/Research-and-implement-phased-Gradle-reload
https://youtrack.jetbrains.com/issue/IDEA-325825/Phased-Gradle-load-project-structure-into-Idea-as-first-phase
https://youtrack.jetbrains.com/issue/IDEA-336246/Project-import-performance

Also, we have improved the import performance a bit in upcoming 2023.3 to not download/index the dependencies' source by default: https://youtrack.jetbrains.com/issue/IDEA-314169/
In IDEA 2023.3, we are going to evaluate "Parallel Model Fetch" upgrade of Gradle sync. It results in 15-40% reduction of sync times, but only applicable to Gradle v7.4+ and requires `org.gradle.parallel=true` in project settings.

If the indexing is long for this project, and you have some people working on the same project, you could also try the shared indexes feature for the team to make the indexing faster: https://www.jetbrains.com/help/idea/shared-indexes.html

0

请先登录再写评论。