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
More flexible Resource cache eviction policy #31
Comments
That's definitely something we must work on for the desktop, I agree. NSCache has 2 properties we could build upon, maybe?
|
I decided not to implement |
Thanks for the interesting read. I was just suggesting taking these NSCache concepts, but not NSCache itself. I'm sure you've studied the subject a lot more than me! |
Resources are currently eligible for deallocation on a low memory event. This works fine in most iOS apps, but (1) will not work on desktop apps, where low memory events do not exist, and (2) may cause memory churn for apps cycling rapidly through many resources.
WeakCache
should support a more flexible eviction policy — perhaps akin toNSCache
, perhaps more rule-based and resource-aware.The text was updated successfully, but these errors were encountered: