fix: Limit caching in all the library
To lower memory usage with high numbers of requests. Possibly improve case #48
This commit is contained in:
@@ -115,7 +115,7 @@ class _StorageTools:
|
||||
# return _impl
|
||||
|
||||
|
||||
@lru_cache(None, typed=True)
|
||||
@lru_cache(256, typed=True)
|
||||
def clean_spaces(string):
|
||||
string = string.replace('\t', ' ')
|
||||
string = re.sub('[\n|\r]', '', string)
|
||||
|
||||
Reference in New Issue
Block a user