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.

classification
Title: Remove tracing overhead from the fine-grained fast opcodes
Type: performance Stage: patch review
Components: Interpreter Core Versions: Python 3.6
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: benjamin.peterson, rhettinger, serhiy.storchaka, steve.dower, vstinner
Priority: normal Keywords: patch

Created on 2016-09-07 18:54 by rhettinger, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
trace.diff rhettinger, 2016-09-07 18:54 Reduce overhead in the review
Messages (3)
msg274867 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2016-09-07 18:54
The fast opcodes are ones where we bypass signal/event checking, but they still have the overhead of checking for tracing enabled (this doesn't seem like much, it adds a memory access and can take almost half the time for some of these already quick opcodes).

I haven't seen an effect on the upstream line level tracing but this needs a second look to be sure there isn't an unanticipated consequence.
msg274896 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2016-09-07 21:15
Working on a revised patch.  Stand by.
msg274898 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2016-09-07 21:39
I'm going to withdraw this one.  I'm not familiar enough with this part of the code to reliably make changes to it.
History
Date User Action Args
2022-04-11 14:58:36adminsetgithub: 72193
2016-09-07 21:39:31rhettingersetstatus: open -> closed

messages: + msg274898
2016-09-07 21:15:23rhettingersetassignee: steve.dower -> rhettinger
messages: + msg274896
2016-09-07 20:58:48rhettingersetnosy: + benjamin.peterson
2016-09-07 19:14:38serhiy.storchakasetnosy: + serhiy.storchaka
2016-09-07 18:55:07vstinnersetnosy: + vstinner
2016-09-07 18:54:52rhettingercreate