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

performance: Scope.findMethodInSuperInterfaces with redundant superinterfaces

Open
#3,602 1 comment 0 reactions 0 assignees View on GitHub
performance
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

org.eclipse.jdt.internal.compiler.lookup.Scope.findMethodInSuperInterfaces(ReferenceBinding, char[], ObjectVector, List, InvocationSite)
lineary searches through `interfacesToVisit`

sampling data from https://github.com/eclipse-jdt/eclipse.jdt.core/pull/3387#issuecomment-2606816518:

![Image](https://github.com/user-attachments/assets/52ef1caf-c1ed-430c-9eec-8896014a82e9)

@fedejeanne you may want to improve this for already visited types too, using a IdentityHashMap

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.