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 arhadthedev
Recipients arhadthedev, larry, serhiy.storchaka
Date 2022-03-28.07:34:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648452855.53.0.150504984756.issue47128@roundup.psfhosted.org>
In-reply-to
Content
Actually, you're right. For now, PyErr_Occurred is a GIL lock plus a memory access. While the access is cheap because of a L1 cache hit, the GIL takes its toll in a hot path.

So I'm closing the PR until GIL removal is done so no performance penalty will be imposed.

I could use _PyErr_Occurred because "Currently Argument Clinic is considered internal-only for CPython", but it requires extra modifications of the clinic that is undesirable.
History
Date User Action Args
2022-03-28 07:34:15arhadthedevsetrecipients: + arhadthedev, larry, serhiy.storchaka
2022-03-28 07:34:15arhadthedevsetmessageid: <1648452855.53.0.150504984756.issue47128@roundup.psfhosted.org>
2022-03-28 07:34:15arhadthedevlinkissue47128 messages
2022-03-28 07:34:15arhadthedevcreate