This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <1538169358.96.0.545547206417.issue34838@psf.upfronthosting.co.za>
In-reply-to
Content
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 https://github.com/python/cpython/pull/9628 for an example of this change giving a 30% speedup.
History
Date User Action Args
2018-09-28 21:15:58rhettingersetrecipients: + rhettinger, vstinner, larry, serhiy.storchaka
2018-09-28 21:15:58rhettingersetmessageid: <1538169358.96.0.545547206417.issue34838@psf.upfronthosting.co.za>
2018-09-28 21:15:58rhettingerlinkissue34838 messages
2018-09-28 21:15:58rhettingercreate