eclipse-jdt / eclipse-jdt/eclipse.jdt.core

JarPackageFragmentRoot.computeChildren very slow in reference search

Open
#4,711 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 10h
Merged PRs (30d)
49

Description

For a project with a lot of libraries on the classpath searching the workspace for references of a certain class takes several minutes to complete.

After profiling a reference search `JarPackageFragmentRoot.computeChildren` seems to be the hot spot, see screenshot.
Executing the same search again is not running faster so it seems there is no index/caching involved. Quite a bit of object allocation as well.

Eclipse version: 2024-12

Image

Contributor guide

Open the contributing guide

Research direction

Start by locating JarPackageFragmentRoot.computeChildren and profiling a reference search in a project with many classpath libraries, as described in the issue. Compare repeated searches and allocation behavior; done means the reference search no longer spends most of its time in this method and repeated searches show the investigated caching or indexing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.