Skip to content

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

Merged
corona10 merged 5 commits into
python:masterfrom
corona10:bpo-43287
Mar 10, 2021
Merged

bpo-43287: Use PEP 590 vectorcall to speed up filter()#24611
corona10 merged 5 commits into
python:masterfrom
corona10:bpo-43287

Conversation

@corona10

@corona10 corona10 commented Feb 21, 2021

Copy link
Copy Markdown
Member

Comment thread Python/bltinmodule.c Outdated
Comment on lines 568 to 569

Copy link
Copy Markdown
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;

Comment thread Python/bltinmodule.c Outdated
Comment thread Python/bltinmodule.c Outdated

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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 :)

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