Message383777
| 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:34 | vstinner | set | recipients:
+ vstinner |
| 2020年12月25日 22:50:34 | vstinner | set | messageid: <1608936634.73.0.0790209715879.issue42745@roundup.psfhosted.org> |
| 2020年12月25日 22:50:34 | vstinner | link | issue42745 messages |
| 2020年12月25日 22:50:34 | vstinner | create |
|