Bug report
Bug description:
memory leak when running code:
from functools import *
@lru_cache(maxsize=100_000)
def f(n):
if n==1 : return 3
if n>1: return 5*f(n-1)
step=995
for n in range(1,10**12,step):
t=f(n)
if (n-1)%(step*10)==0:
print(n,(n*100)/10**12, f.cache_info())
more cache size more fast leak
CPython versions tested on:
3.14
Operating systems tested on:
Windows
Bug report
Bug description:
memory leak when running code:
more cache size more fast leak
CPython versions tested on:
3.14
Operating systems tested on:
Windows