Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid duplicate calls in ReferenceBinding::superInterfaces #3601 #3622

Conversation

fedejeanne
Copy link
Contributor

  • Make the method final
  • Add new recursive method ReferenceBinding.superInterfacesRecursive that takes an IndentityHashMap to keep the visited types

Fixes #3601

…t#3601

- Make the method final
- Add new recursive method ReferenceBinding.superInterfacesRecursive
that takes an IndentityHashMap to keep the visited types

Fixes eclipse-jdt#3601
@fedejeanne
Copy link
Contributor Author

@jukzi with the current approach I see no improvement.

Here's the filtered hotspots view:

image

So basically I shifted the hotspot from BinaryTypeBinding.superInterfaces() to BinaryTypeBinding.superInterfacesRecursive()

I can't see the issue with my implementation though. Maybe you have a better idea?

@fedejeanne
Copy link
Contributor Author

superseded by #3710

@fedejeanne fedejeanne closed this Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

performance: ReferenceBinding.superInterfaces() with redundant super interfaces
2 participants