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

remove HashedParameterizedTypes #3437

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jukzi
Copy link
Contributor

@jukzi jukzi commented Dec 11, 2024

The PTBKey looks complicated and errorprone (updating hashCode on an Element in a HashMap). Let's find out what was really slow and then see if we find a better solution for
"linear effort during lookup"
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=434326#c2)

partial revert commit 510e796 (Bug 434326 - Slow compilation with a significant amount of generics)

keeps binary search in
TypeSystem.cacheDerivedType(TypeBinding keyType, TypeBinding derivedType)

The PTBKey looks complicated and errorprone (updating hashCode on an
Element in a HashMap). Let's find out what was really slow and then see
if we find a better solution for
"linear effort during lookup"
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=434326#c2)

partial revert commit 510e796
(Bug 434326 - Slow compilation with a significant amount of generics)

keeps binary search in
TypeSystem.cacheDerivedType(TypeBinding keyType, TypeBinding
derivedType)
@jukzi
Copy link
Contributor Author

jukzi commented Dec 11, 2024

EXPERIMENT - DO NOT MERGE

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.

2 participants