Author scoder
Recipients scoder
Date 2017-09-04.11:39:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The method lookup fast path in _PyType_Lookup() does not apply during type creation, which is highly dominated by the performance of the dict lookups along the mro chain. Pre-calculating the name hash speeds up the creation of an empty class (i.e. "class Test: pass") by around 20%.

Will send a pull request shortly.
Date User Action Args
2017-09-04 11:39:18scodersetrecipients: + scoder
2017-09-04 11:39:18scodersetmessageid: <>
2017-09-04 11:39:18scoderlinkissue31336 messages
2017-09-04 11:39:17scodercreate