buildship icon indicating copy to clipboard operation
buildship copied to clipboard

Importing is slow due to classpath serialization

Open nedtwigg opened this issue 2 years ago • 0 comments

Importing a Gradle project is super slow. Even a simple project with only a single dependency on JUnit takes ~60 seconds to import on a Macbook Air M1. All of the time is going into serializing the classpath of the IDE. I'm not sure why this is necessary, but it certainly doesn't have to take 50 seconds.

image

Expected Behavior

Importing a simple Gradle project should take less than 10 seconds.

Current Behavior

Importing a simple Gradle project takes ~60 seconds.

Context

It makes importing or changing even a simple Gradle project too hard.

Steps to Reproduce

  • clone https://github.com/equodev/eclipse-ai-example
  • run gradlew equoIde
  • it will launch an Eclipse which is importing a single project with only one dependency, and it will take 60 seconds to complete
  • if you attach VisualVM or another such tool, you can see that all the time is spent in PayloadSerializer.

Your Environment

  • Macbook Air M1, but same issue on Windows

nedtwigg avatar Jul 06 '23 08:07 nedtwigg