Hacker News new | ask | show | jobs
by magicalhippo 2318 days ago
How can't it be used for caching? Say you decode an image, then offer the memory backed by it to the OS. If you need to access the image data again you try to reclaim the memory, if it fails it's a cache miss.
1 comments

You're right, the missing info I didn't notice was the return value.