Paulo Henrique Silva <ph.si...@gmail.com> added the comment:

About half of the remaining refs are related to encodings. I noticed that 
caches on Lib/encodings/__init__.py and codec_search_cach of PyInterpreterState 
are the places holding the refs. I removed those caches and number went do to:

Before: 4382 refs left
After : 2344 refs left (-46%)

The way to destroy codec_search_cache was recently changed on #36854 and $38962.

(Not proposing to merge this, but my changes are at 
https://github.com/python/cpython/compare/master...phsilva:remove-codec-caches).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue1635741>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to