Skip to content

bpo-46031: add POP_JUMP_IF_NOT_NONE and POP_JUMP_IF_NONE #30019

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

Merged
merged 11 commits into from
Jan 6, 2022

Conversation

penguin-wwy
Copy link
Contributor

@penguin-wwy penguin-wwy commented Dec 10, 2021

Copy link
Member

@brandtbucher brandtbucher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch @penguin-wwy, and welcome to CPython!

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@penguin-wwy
Copy link
Contributor Author

I have made the requested changes; please review again.

@bedevere-bot
Copy link

Thanks for making the requested changes!

@brandtbucher: please review the changes made to this pull request.

Copy link
Member

@brandtbucher brandtbucher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@markshannon, can you hit this with pyperformance to see what the numbers look like? Hopefully we can reproduce the reported 1% speedup.

Copy link
Member

@brandtbucher brandtbucher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I didn't see you have some stale files. @penguin-wwy, can you run make regen-all, please?

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@penguin-wwy
Copy link
Contributor Author

@brandtbucher I resolve conflicts and run make regen-all, then nothing reminds me that I need to submit news.
@bedevere-bot I have made the requested changes; please review again.

@bedevere-bot
Copy link

Thanks for making the requested changes!

@brandtbucher: please review the changes made to this pull request.

@markshannon
Copy link
Member

Shows a small speedup

@penguin-wwy
Copy link
Contributor Author

@markshannon Thank you. Also, what are the configuration arguments for exec benchmark ? I used --enable-optimizations --with-lto

@markshannon
Copy link
Member

@markshannon Thank you. Also, what are the configuration arguments for exec benchmark ? I used --enable-optimizations --with-lto

Yes, --enable-optimizations --with-lto is what we use.
Different builds and architectures can impact the results quite a lot, so it is quite likely that one machine will show a speedup of 1% and another, little or no speedup.

@markshannon
Copy link
Member

Looks good.
You will need to add the new instructions to Doc/library/dis.rst
and increment the magic number in Lib/importlib/_bootstrap_external.py

@penguin-wwy
Copy link
Contributor Author

Thank you! I have made the requested changes.

@markshannon
Copy link
Member

LGTM.
I'm afraid that there are a few PRs adding or removing bytecodes at the moment, so you might need to wait a few days to avoid conflicts.

@penguin-wwy
Copy link
Contributor Author

You are right
I have solved conflicts >= 5 times :)

@markshannon markshannon merged commit 3db762d into python:main Jan 6, 2022
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.

5 participants