Author scoder
Recipients inada.naoki, pitrou, rhettinger, scoder, serhiy.storchaka, vstinner
Date 2017-09-04.13:00:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504530024.3.0.129213721827.issue31336@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-09-04 13:00:24scodersetrecipients: + scoder, rhettinger, pitrou, vstinner, inada.naoki, serhiy.storchaka
2017-09-04 13:00:24scodersetmessageid: <1504530024.3.0.129213721827.issue31336@psf.upfronthosting.co.za>
2017-09-04 13:00:24scoderlinkissue31336 messages
2017-09-04 13:00:23scodercreate