Caching work (data loads) #676
Unanswered
AJAnderson
asked this question in
Q&A
Replies: 1 comment 3 replies
-
"How to cache things" is a pretty general question; it depends a lot on your requirements. In particular, cache eviction is a complex subject. For something simple, try https://crates.io/crates/memoize ? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working to make a small plotting front end to a data loading library I'm working on.
The library itself doesn't cache data it's asked to load. So I was wondering what the best way to cache data would be for egui, would it be to make a field in the main app struct to take the data? If so, I'm not sure how I would make that generic so that it could accept any datatype that gets loaded, any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions