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-39320: Don't use an oparg for new DICT_* opcodes.#18243

Closed
brandtbucher wants to merge 4 commits into
python:masterpython/cpython:masterfrom
brandtbucher:map-opargsbrandtbucher/cpython:map-opargsCopy head branch name to clipboard
Closed

bpo-39320: Don't use an oparg for new DICT_* opcodes.#18243
brandtbucher wants to merge 4 commits into
python:masterpython/cpython:masterfrom
brandtbucher:map-opargsbrandtbucher/cpython:map-opargsCopy head branch name to clipboard

Conversation

@brandtbucher

@brandtbucher brandtbucher commented Jan 29, 2020

Copy link
Copy Markdown
Member

The oparg for these new, simpler opcodes is always 1. @markshannon

https://bugs.python.org/issue39320

@markshannon

Copy link
Copy Markdown
Member

I'd prefer to keep the new opcodes as they are.

There is no efficiency gain in ignoring the oparg, as it is always pre-computed during dispatch.
Allowing flexible access into the stack may allow compiler optimisations that your change would prevent.

@brandtbucher

Copy link
Copy Markdown
Member Author

That makes sense; thanks for the quick review!

@brandtbucher brandtbucher deleted the map-opargs branch July 21, 2022 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review type-feature A feature request or enhancement

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.