Message388377
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. |
|
Date |
User |
Action |
Args |
2021-03-09 19:21:17 | dino.viehland | set | recipients:
+ dino.viehland |
2021-03-09 19:21:17 | dino.viehland | set | messageid: <1615317677.24.0.232039554227.issue43452@roundup.psfhosted.org> |
2021-03-09 19:21:17 | dino.viehland | link | issue43452 messages |
2021-03-09 19:21:17 | dino.viehland | create | |
|