◐ Shell
reader mode source ↗
Skip to content

bpo-35582: Inline arguments tuple unpacking in handwritten code.#11524

Merged
serhiy-storchaka merged 3 commits into
python:masterfrom
serhiy-storchaka:inline-arg-tuple-unpack
Jan 12, 2019
Merged

bpo-35582: Inline arguments tuple unpacking in handwritten code.#11524
serhiy-storchaka merged 3 commits into
python:masterfrom
serhiy-storchaka:inline-arg-tuple-unpack

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jan 11, 2019

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.

@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.

Hide comment

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

Labels

performance Performance or resource usage skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants