an experiment. lets don't use threading locks, hope it helps with performance
This commit is contained in:
parent
2e09b286f4
commit
372936fcad
8 changed files with 88 additions and 77 deletions
1
src/c3nav/mapdata/utils/cache/local.py
vendored
1
src/c3nav/mapdata/utils/cache/local.py
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue