Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-44878: Remove the switch from the main interpreter loop when using computed gotos. #27726

Merged
merged 3 commits into from
Aug 11, 2021

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Aug 11, 2021

There is no point in having two dispatch tables. Either we use the switch dispatch or use computed gotos. Not both.

Also moves lltrace and dxprofile code into the DISPATCH macro and friends to clarify the dispatch logic.

This also allows us to remove the loop, as all dispatching is done by some sort of goto.
But that is for another PR, as it requires reformatting over 3000 lines of code.

https://bugs.python.org/issue44878

…e and dxprofile instrumentation into DISPATCH macro.
… no need for two nearly-duplicate dispatch tables.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants