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

chore: deprecate AbstractCache that relies upon synchronization #315

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

iProdigy
Copy link
Member

@iProdigy iProdigy commented Sep 9, 2024

Caches typically shouldn't use AbstractCache due to its use of synchronization (bad for multi-threaded performance and virtual threads pre JEP 8337395)

We only use it for the android module since the underlying LruCache also synchronizes all operations, so I've copied the class to a package-private form for that module

Copy link

@iProdigy iProdigy merged commit 84a400a into main Sep 17, 2024
3 checks passed
@iProdigy iProdigy deleted the chore/deprecate-abstract-cache branch September 17, 2024 20: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.

2 participants