GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bpo-42990: Further refactoring of PyEval_ functions. by markshannon · Pull Request #24368 · python/cpython

Conversation

@markshannon

@markshannon markshannon commented Jan 29, 2021 •
edited by bedevere-bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Removes a further layer of indirection for calling Python functions, by replacing _PyEval_EvalCodeWithName() which took a large an incoherent set of parameters with _PyEval_Vector() which takes fewer than half the parameters, and is more efficient in the common case of calling a function.

Skipping NEWS as this should have no visible effect on API or performance, nor does it fix any bugs. It just makes our life easier in the future.

https://bugs.python.org/issue42990

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
markshannon added 7 commits January 29, 2021 13:43
@markshannon
Further refactoring of PyEval_EvalCode and friends. Break into make-f…
d2526ef
…rame, and eval-frame parts.
@markshannon
Simplify function vector call using new _PyEval_Vector.
b6b6dcf
@markshannon
Remove unused internal functions: _PyEval_EvalCodeWithName and _PyEva…
d05e768
…l_EvalCode.
@markshannon
Don't use legacy function PyEval_EvalCodeEx.
86ed35c
@markshannon
Further simplifications.
0eb824a
@markshannon
Fix up after rebase.
0c425bb
@markshannon
Remove locals from frame descriptor. Make _PyEval_Vector parameters m…
d2150e4
…ore like other vector calls.
@the-knights-who-say-ni the-knights-who-say-ni added the CLA signed label Jan 29, 2021
@bedevere-bot bedevere-bot added the awaiting core review label Jan 29, 2021
@markshannon markshannon added the skip news label Jan 29, 2021
@markshannon
Manually inline one use static function.
4c16e21
@gvanrossum

gvanrossum commented Jan 29, 2021

Copy link
Copy Markdown
Member

(Isn't news also used to alert developers of structural changes to the interpreter?)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

markshannon added 2 commits January 30, 2021 11:32
@markshannon
Add news
12df805
@markshannon
Fix compiler warning.
be72b61
@markshannon

markshannon commented Jan 30, 2021

Copy link
Copy Markdown
Member Author

There's no API changes, so I assumed not.
No harm in adding one though.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@markshannon
Fix formatting in news item.
0af68d1
@markshannon
markshannon merged commit 0332e56 into python:master Feb 1, 2021
@bedevere-bot bedevere-bot removed the awaiting core review label Feb 1, 2021
@markshannon
markshannon deleted the eval-refactor branch February 2, 2021 00:20
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
@markshannon @adorilson
bpo-42990: Further refactoring of PyEval_ functions. (pythonGH-24368)
4432a0f
* Further refactoring of PyEval_EvalCode and friends. Break into make-frame, and eval-frame parts.

* Simplify function vector call using new _PyEval_Vector.

* Remove unused internal functions: _PyEval_EvalCodeWithName and _PyEval_EvalCode.

* Don't use legacy function PyEval_EvalCodeEx.
@pamelafox pamelafox mentioned this pull request Jun 13, 2022
Unneeded include in call.c #93785
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@markshannon @gvanrossum @the-knights-who-say-ni @bedevere-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.