Skip to content

bpo-43287: Use PEP 590 vectorcall to speed up filter() #24611

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 5 commits into from
Mar 10, 2021

Conversation

corona10
Copy link
Member

@corona10 corona10 commented Feb 21, 2021

Comment on lines 568 to 569
lz->it = it;
lz->func = Py_NewRef(args[0]);
Copy link
Member

Choose a reason for hiding this comment

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

I prefer to set structure members in the same order of the structure members.

Suggested change
lz->it = it;
lz->func = Py_NewRef(args[0]);
lz->func = Py_NewRef(args[0]);
lz->it = it;

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM.

Seeing the boilerplate code to parse arguments makes me sad, but I created https://bugs.python.org/issue43447 to discuss how to adress this issue ;-)

@corona10
Copy link
Member Author

Seeing the boilerplate code to parse arguments makes me sad, but I created https://bugs.python.org/issue43447 to discuss how to adress this issue ;-)

Great :)

@corona10 corona10 merged commit 9a9c11a into python:master Mar 10, 2021
@corona10 corona10 deleted the bpo-43287 branch March 10, 2021 16:39
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