Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Either memoize responses of use a caching library (like hisel) to boost performance #14

Open
devraj opened this issue Nov 21, 2023 · 1 comment
Assignees
Milestone

Comments

@devraj
Copy link
Member

devraj commented Nov 21, 2023

See also hisel built on top of httpx for caching responses. This might be more apt? https://github.com/karpetrosyan/hishel


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:

@devraj
Copy link
Member Author

devraj commented Apr 30, 2024

See also functools package for decorators like cached_property

@devraj 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
@devraj devraj modified the milestones: beta-1, 1.0 Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant