Use of functools.lru_cache
on methods can lead to memory leaks
#63
Labels
bug
Something isn't working
functools.lru_cache
on methods can lead to memory leaks
#63
As reported by flake8-bugbear,
liquid.context.Context
usedfunctools.lru_cache
on itsfilter
method, which can causeContext
instances to stay in memory after they are no longer needed.Benchmarks show that this particular cache is not providing any improvement in performance, so we can simply remove it.
The text was updated successfully, but these errors were encountered: