KEMBAR78
ANDROID: Rewrite cache to make it more efficient by lephilousophe · Pull Request #4762 · scummvm/scummvm · GitHub
Skip to content

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 requested a review from antoniou79 March 3, 2023 16:31
@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 lephilousophe force-pushed the android-better-cache branch from 04eb5d5 to f05677e Compare March 4, 2023 16:58
@lephilousophe
Copy link
Member Author

Merging as discussed.

@lephilousophe lephilousophe merged commit 55c9a75 into scummvm:master Mar 4, 2023
@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

Development

Successfully merging this pull request may close these issues.

1 participant