Cache Me If You Can
The LRU (Least Recently Used) cache is implemented! It's strangely satisfying to watch the cache hit rate climb above 80% on repeated queries for the same tracts and patches. The performance difference is night and day. Since we're dealing with "astronomical" images (pun very much intended), I also added some memory monitoring to make sure the cache doesn't eat all our RAM.
Comments
Post a Comment