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

ANDROID: Rewrite cache to make it more efficient #4762

Merged
merged 3 commits into from Mar 4, 2023

Conversation

lephilousophe
Copy link
Member

Instead of caching path string, cache nodes and their children. This allows a better tracking of what is in cache and what is not.

Use SoftReference to allow for simple cleanup and ensure we have unique SAFFSNode instances.

This PR is an alternative to #4761

@lephilousophe lephilousophe force-pushed the android-better-cache branch 2 times, most recently from 7ddb4b9 to 04eb5d5 Compare March 3, 2023 18:16
Instead of caching path string, cache nodes and their children.
This allows a better tracking of what is in cache and what is not.

Use SoftReference to allow for simple cleanup and ensure we have unique
SAFFSNode instances.
@lephilousophe
Copy link
Member Author

Merging as discussed.

@lephilousophe lephilousophe merged commit 55c9a75 into scummvm:master Mar 4, 2023
8 checks passed
@lephilousophe lephilousophe deleted the android-better-cache branch March 4, 2023 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant