an experiment. lets don't use threading locks, hope it helps with performance

This commit is contained in:
Laura Klünder 2023-12-07 17:28:13 +01:00
parent 2e09b286f4
commit 372936fcad
8 changed files with 88 additions and 77 deletions

View file

@ -12,6 +12,7 @@ class NoneFromCache:
class LocalCacheProxy:
# django cache, buffered using a LRU cache
# only usable for stuff that never changes, obviously
# todo: ensure thread-safety, compatible with async + daphne etc
def __init__(self, maxsize=128):
self._maxsize = maxsize
self._mapupdate = None