Message301221
It's the slot names in "slotdefs". See "update_one_slot()".
The time that is saved is mostly the overhead of calling PyDict_GetItem(). I actually tried PyDict_GetItemWithError() first, which is faster due to the lower error handling overhead, before I noticed that the real problem is the repeated lookups of the same name, which can be optimised further by pre-calculating the hash and calling the low-level lookup function. |
|
| Date |
User |
Action |
Args |
| 2017-09-04 13:00:24 | scoder | set | recipients:
+ scoder, rhettinger, pitrou, vstinner, methane, serhiy.storchaka |
| 2017-09-04 13:00:24 | scoder | set | messageid: <[email protected]> |
| 2017-09-04 13:00:24 | scoder | link | issue31336 messages |
| 2017-09-04 13:00:23 | scoder | create | |
|