1
0
Fork 0

[utils] Improve performance using functools.cache

Closes #3786
This commit is contained in:
pukkandan 2022-05-19 19:36:31 +05:30
commit 0b9c08b47b
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
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)