Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
serhiy-storchaka merged 3 commits into
python:masterpython/cpython:masterfrom
serhiy-storchaka:inline-arg-tuple-unpackserhiy-storchaka/cpython:inline-arg-tuple-unpackCopy head branch name to clipboard
Jan 12, 2019
Merged

bpo-35582: Inline arguments tuple unpacking in handwritten code.#11524
serhiy-storchaka merged 3 commits into
python:masterpython/cpython:masterfrom
serhiy-storchaka:inline-arg-tuple-unpackserhiy-storchaka/cpython:inline-arg-tuple-unpackCopy head branch name to clipboard

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.

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

Labels

performance Performance or resource usage skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.