[utils] Improve performance using functools.cache

Closes #3786
This commit is contained in:
pukkandan
2022-05-19 19:36:31 +05:30
parent 2f97cc615b
commit 0b9c08b47b
3 changed files with 19 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
# flake8: noqa: F405
from functools import * # noqa: F403
from .compat_utils import passthrough_module
passthrough_module(__name__, 'functools')
del passthrough_module
try:
cache # >= 3.9
except NameError:
cache = lru_cache(maxsize=None)