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

Use a ConcurrentHashMap for CacheState#map #176

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

kyri-petrou
Copy link
Contributor

ConcurrentHashMap is supported on all platforms now (JVM, JS, Native) so we don't need to have platform-specific implementations. This makes the code simpler but also avoids virtual interface dispatches from method calls on the Map interface.

Note that while these changes are not technically binary compatible, they're safe as all the classes are defined as private so I added mima exclusions for them.

@kyri-petrou kyri-petrou merged commit 0078856 into series/2.x Feb 20, 2025
27 checks passed
@kyri-petrou kyri-petrou deleted the use-concurrent-hash-map-directly branch February 20, 2025 07:56
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.

3 participants