You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While implementing a solution for #5 and #8 which both depend on discover of the API endpoints and thus a performance hit on calling the API endpoints unnecessarily, I implement a memoized property for the API endpoint discovery.
This lead me to think if this would be helpful in REST client being able to cache information. To implement this truthfully we would have to:
Check if the command centre is able to provide information i.e Etag or the likes to denote if the cache is stable
Outline an appropriate caching technique either in memory or writing to disk (the later can be more complicated than we need to)
See also functools package for decorators like cached_property
devraj
changed the title
Would memoization help with performance of API calls?
Either memoize responses of use a caching library (like hisel) to boost performance
May 8, 2024
See also hisel built on top of
httpx
for caching responses. This might be more apt? https://github.com/karpetrosyan/hishelWhile implementing a solution for #5 and #8 which both depend on discover of the API endpoints and thus a performance hit on calling the API endpoints unnecessarily, I implement a memoized property for the API endpoint discovery.
This lead me to think if this would be helpful in REST client being able to cache information. To implement this truthfully we would have to:
The text was updated successfully, but these errors were encountered: