Skip to content

improve EquivalenceKeys caching#623

Merged
Ladicek merged 4 commits intosmallrye:mainfrom
Ladicek:improve-equivalence-keys-caching
Nov 27, 2025
Merged

improve EquivalenceKeys caching#623
Ladicek merged 4 commits intosmallrye:mainfrom
Ladicek:improve-equivalence-keys-caching

Conversation

@Ladicek
Copy link
Member

@Ladicek Ladicek commented Nov 27, 2025

No description provided.

It uses 2 strategies:

- for `java.*` classes, the instances are put into a `ConcurrentHashMap`,
  and retained indefinitely, because there's a bounded number of them
- for non`-java.*` classes, the instances are put into an array, where
  the index is determined by the class name hash code; the array size
  is a natural bound

The `ClassTypeEquivalenceKey` caching is changed to also use these
2 strategies.
@Ladicek Ladicek added this to the 3.5.3 milestone Nov 27, 2025
@Ladicek Ladicek merged commit 740fd67 into smallrye:main Nov 27, 2025
43 checks passed
@Ladicek Ladicek deleted the improve-equivalence-keys-caching branch November 27, 2025 12:36
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.

1 participant