◐ Shell
clean mode source ↗

bpo-35582: Inline arguments tuple unpacking in handwritten code. by serhiy-storchaka · Pull Request #11524 · python/cpython

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented

Jan 11, 2019

edited by bedevere-bot

Loading

Copy link Copy Markdown

Member

Inline PyArg_UnpackTuple() and _PyArg_UnpackStack() in performance
critical code in the builtins and operator modules.

https://bugs.python.org/issue35582

Inline PyArg_UnpackTuple() and _PyArg_UnpackStack() in performance
critical code in the builtins and operator modules.

@serhiy-storchaka

Copy link Copy Markdown

Member Author

This PR rewrites again some of code changed in #11435. It looks now simpler but has the same performance.

Comment thread

Python/bltinmodule.c Outdated

Comment thread

Python/bltinmodule.c Outdated

Comment thread

Python/bltinmodule.c

@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 but please keep "w" variable in builtin_iter() as I proposed in a comment.

@serhiy-storchaka serhiy-storchaka merged commit 7934266 into python:master

Jan 12, 2019

@serhiy-storchaka serhiy-storchaka deleted the inline-arg-tuple-unpack branch

January 12, 2019 06:25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@vstinner vstinner vstinner approved these changes

@rhettinger rhettinger Awaiting requested review from rhettinger

Assignees

No one assigned

Labels

performance

Performance or resource usage

skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@serhiy-storchaka @vstinner @the-knights-who-say-ni @bedevere-bot