We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
__repr__
Similar to #55, __repr__ leaks memory.
OS version: Ubuntu 20.04.4 LTS Python3 version (python3 -V -V): Python 3.8.10
Borrowing code from #55:
import resource import frozendict print("frozendict version:", frozendict.__version__) print() c = 0 while True: fz = frozendict.frozendict({i: i for i in range(1000)}) _repr = repr(fz) if (c % 10000) == 0: max_rss = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss print(f"iteration: {c}, max rss: {max_rss} kb") c += 1
frozendict version: 2.3.2 iteration: 0, max rss: 11712 kb iteration: 10000, max rss: 118104 kb iteration: 20000, max rss: 224496 kb iteration: 30000, max rss: 330888 kb iteration: 40000, max rss: 437280 kb iteration: 50000, max rss: 543672 kb
The text was updated successfully, but these errors were encountered:
/sync
(#59) fixed memory leak in repr
3eb3c49
Thank you again for the report. It should be fixed in 3eb3c49 Can you confirm?
Sorry, something went wrong.
That seems to have fixed it. Thank for your the fast response! Can we have a PyPI release with the fix?
As already said, done.
No branches or pull requests
Similar to #55,
__repr__
leaks memory.OS version: Ubuntu 20.04.4 LTS
Python3 version (python3 -V -V): Python 3.8.10
Steps to reproduce
Borrowing code from #55:
Actual result
The text was updated successfully, but these errors were encountered: