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 pablogsal
Recipients dino.viehland, pablogsal, vstinner
Date 2021-03-27.00:02:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616803325.06.0.66166503796.issue43636@roundup.psfhosted.org>
In-reply-to
Content
Bisecting points at:

commit ee48c7d54147ae906776b9f6f96e8920e097d0c4
Author: Dino Viehland <dinoviehland@fb.com>
Date:   Sat Mar 20 12:12:05 2021 -0700

    bpo-43452: Micro-optimizations to PyType_Lookup (GH-24804)

    The common case going through _PyType_Lookup is to have a cache hit. There are some small tweaks that can make this a little cheaper:

    * 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 o the name - instead, the address can be used as the hash.

    *  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.

    *  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-27 00:02:05pablogsalsetrecipients: + pablogsal, vstinner, dino.viehland
2021-03-27 00:02:05pablogsalsetmessageid: <1616803325.06.0.66166503796.issue43636@roundup.psfhosted.org>
2021-03-27 00:02:05pablogsallinkissue43636 messages
2021-03-27 00:02:04pablogsalcreate