Reevaluate custom lru_cache decorator #2688
Labels
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
sig/stack-guidance
Categorizes an issue or PR as relevant to SIG Stack Guidance.
triage/needs-information
Indicates an issue needs more information in order to work on it.
thoth/storages/graph/postgres.py#L210
contains a implementation of lru_cachefor methods.
This seems like something which should already exists in a library.
Potential candidates (cachetools, functools, methodtools)
Potentially relevant
https://stackoverflow.com/questions/33672412/python-functools-lru-cache-with-instance-methods-release-object
tkem/cachetools#106
python/cpython#64058
Refs
Introduced in commit 06a7722 ("performance reasons")
/kind cleanup
/triage needs-information
/priority backlog
(That's part of my exploration of the storages codebase while trying to fix mypy
errors in #2674, leaving that here for future reference)
The text was updated successfully, but these errors were encountered: