Author rhettinger
Recipients larry, rhettinger, serhiy.storchaka, vstinner
Date 2018-09-28.21:15:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
An arg clinic specification such as

    p: object(subclass_of='&PyTuple_Type')

generates slow code using _PyArg_ParseStack() that has to parse a format string like "O!" to decide to make a type check.  Instead, it should directly generate a branch-predictable test for the type check and then call the much quicker function _PyArg_UnpackStack().

See for an example of this change giving a 30% speedup.
Date User Action Args
2018-09-28 21:15:58rhettingersetrecipients: + rhettinger, vstinner, larry, serhiy.storchaka
2018-09-28 21:15:58rhettingersetmessageid: <>
2018-09-28 21:15:58rhettingerlinkissue34838 messages
2018-09-28 21:15:58rhettingercreate