Message364836
> 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.
Good Catch, Paulo.
IMHO, caches is useful in codecs(it's improve the search efficiency).
I have two humble idea:
1. Clean all item of codec_search_xxx in `Py_Finalize()`;
2. change the refcount mechanism(in this case, refcount+1 or refcount+2 make no differenct); |
|
Date |
User |
Action |
Args |
2020-03-23 05:15:30 | shihai1991 | set | recipients:
+ shihai1991, amaury.forgeotdarc, kylotan, vstinner, tlesher, phsilva, ysj.ray, santoso.wijaya, eric.snow, pconnell, isoschiz, Alex Budovski, corona10, miss-islington |
2020-03-23 05:15:30 | shihai1991 | set | messageid: <1584940530.81.0.925899209505.issue1635741@roundup.psfhosted.org> |
2020-03-23 05:15:30 | shihai1991 | link | issue1635741 messages |
2020-03-23 05:15:30 | shihai1991 | create | |
|