CodableCache icon indicating copy to clipboard operation
CodableCache copied to clipboard

Performance issues

Open uuttff8 opened this issue 5 years ago • 2 comments

I've been reported that this library is much slower than https://github.com/hyperoslo/Cache, just my experience

uuttff8 avatar Mar 27 '20 19:03 uuttff8

Hi @uuttff8, thank you for raising this concern. I was thinking of picking this project back up again, as it needs a bit of work. Do you have any suggestions on how to improve it? Thanks.

asowers1 avatar Apr 28 '20 16:04 asowers1

Hi @asowers1, I think, to do perfomance issue done, you should introduce RAM Memory Cache (such as NSCache) for short-term objects, and Disk Cache for long-term objects, of course Codable objects, finally combine it into HybridStorage as it done here. Also introduce async version of saving objects, and exclusive feature should be Typed Errors in Async, that is must have for me.

uuttff8 avatar Apr 28 '20 20:04 uuttff8