sdsc-ordes / modos-api

Python API to manage multi-omics digital objects
https://sdsc-ordes.github.io/modos-api
Apache License 2.0
0 stars 0 forks source link

perf: use fuzon cache with CodeMatcher #108

Closed cmdoret closed 1 month ago

cmdoret commented 1 month ago

When using code search locally, loading the terminologies over the network can take up to 30s.

This PR implements caching so that this only happens the first time a terminology is used. On subsequent loads, they are loaded from cache, which takes about 1s.

Caching logic is implemented in fuzon, and each terminology has one cache entry whose key is determined by its URL, last modified datetime and/or ETag checksum if available.