[New-bugs-announce] [issue47045] Remove the RESUME instruction

Mark Shannon report at bugs.python.org
Thu Mar 17 12:23:10 EDT 2022


New submission from Mark Shannon <mark at hotpy.org>:

The RESUME instruction was added to make resumption points explicit in the bytecode. This makes it easier to implement tracing, quickening, and interrupt checks as there is an explicit place to perform these checks.

Unfortunately, it also has considerable overhead. So we should remove it.
To do that, we need to:
1. Remove f_state from the InterpreterFrame so we don't need to update it.
2 .Quicken automatically in the adaptive instructions.
3. Check the evalbreaker when resuming a frame in the interpreter.
4. Add some metadata to the code object, so that we know when to fire "call" events when tracing.

----------
assignee: Mark.Shannon
messages: 415424
nosy: Mark.Shannon
priority: normal
severity: normal
status: open
title: Remove the RESUME instruction
type: performance

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47045>
_______________________________________


More information about the New-bugs-announce mailing list