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 dino.viehland
Recipients dino.viehland
Date 2021-03-09.19:21:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615317677.24.0.232039554227.issue43452@roundup.psfhosted.org>
In-reply-to
Content
The common case going through _PyType_Lookup is to have a cache hit.  There's some small tweaks which can make this a little cheaper:

1) the name field identity is used for a cache hit, and is kept alive by the cache.  So there's no need to read the hash code of the name - instead the address can be used as the hash.

2) There's no need to check if the name is cachable on the lookup either, it probably is, and if it is, it'll be in the cache.

3) If we clear the version tag when invalidating a type then we don't actually need to check for a valid version tag bit.
History
Date User Action Args
2021-03-09 19:21:17dino.viehlandsetrecipients: + dino.viehland
2021-03-09 19:21:17dino.viehlandsetmessageid: <1615317677.24.0.232039554227.issue43452@roundup.psfhosted.org>
2021-03-09 19:21:17dino.viehlandlinkissue43452 messages
2021-03-09 19:21:17dino.viehlandcreate