mirror of
https://github.com/python/cpython.git
synced 2025-10-22 14:42:22 +00:00
bpo-44878: Remove the switch from the main interpreter loop when using computed gotos. (GH-27726)
* Refactor dispatch logic to make flow of control clearer. Moves lltrace and dxprofile instrumentation into DISPATCH macro. * Remove switch in interpreter loop when using computed gotos. There is no need for two nearly-duplicate dispatch tables.
This commit is contained in:
parent
3f3d5dcac3
commit
f66d00fdd7
2 changed files with 208 additions and 177 deletions
|
@ -0,0 +1,2 @@
|
|||
Remove switch statement for interpreter loop when using computed gotos. This
|
||||
makes sure that we only have one dispatch table in the interpreter.
|
383
Python/ceval.c
383
Python/ceval.c
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue