← 返回首页
GH-90690: Remove `PRECALL` instruction by markshannon · Pull Request #92925 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

GH-90690: Remove PRECALL instruction#92925

Merged
markshannon merged 2 commits into
python:mainfrom
faster-cpython:remove-precall
May 19, 2022
Merged

GH-90690: Remove PRECALL instruction#92925
markshannon merged 2 commits into
python:mainfrom
faster-cpython:remove-precall

Conversation

Copy link
Copy Markdown
Member

The PRECALL instruction exists only to assist in specializing bound-methods and calls to Python classes.

We can get almost all the benefit ofr bound-methods by adding another specialization of CALL, and it looks like the best approach to specialize calls to Python classes is push a shim frame.

So, it makes sense to remove the PRECALL instruction.

Copy link
Copy Markdown
Member Author

About 1% faster

markshannon added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label May 18, 2022

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @markshannon for commit bad98cf 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label May 18, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants

Footer

© 2026 GitHub, Inc.