This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2020-12-25.22:50:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608936634.73.0.0790209715879.issue42745@roundup.psfhosted.org>
In-reply-to
Content
Currently, the type lookup cache is shared by all interpreter which causes multiple issues:

* The version tag is currently protected by the GIL, but it would require a new lock if the GIL is made per interpreter (bpo-40512)

* Clearing the cache in an interpreter clears the cache in all interpreters

* The cache has a fixed size of 4096 entries. The cache misses increase with the number of interpreters, since each interpreter has its own types.

I propose to make the type lookup cache per interpreter.
History
Date User Action Args
2020-12-25 22:50:34vstinnersetrecipients: + vstinner
2020-12-25 22:50:34vstinnersetmessageid: <1608936634.73.0.0790209715879.issue42745@roundup.psfhosted.org>
2020-12-25 22:50:34vstinnerlinkissue42745 messages
2020-12-25 22:50:34vstinnercreate