Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

bpo-29524: Add Objects/call.c file#12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:masterfromvstinner:call_file
Feb 12, 2017
Merged

bpo-29524: Add Objects/call.c file#12

vstinner merged 1 commit intopython:masterfromvstinner:call_file
Feb 12, 2017

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commentedFeb 11, 2017
edited
Loading

  • Move all functions to call objects in a new Objects/call.c file.
  • Rename fast_function() to _PyFunction_FastCallKeywords().
  • Copy null_error() from Objects/abstract.c
  • Inline type_error() in call.c to not have to copy it, it was only called once.
  • Export _PyEval_EvalCodeWithName() since it is now called from call.c.

http://bugs.python.org/issue29524

* Move all functions to call objects in a new Objects/call.c file.* Rename fast_function() to _PyFunction_FastCallKeywords().* Copy null_error() from Objects/abstract.c* Inline type_error() in call.c to not have to copy it, it was only  called once.* Export _PyEval_EvalCodeWithName() since it is now called  from call.c.
@vstinnervstinner added the performancePerformance or resource usage labelFeb 11, 2017
inlines the most primitive frame setup code from
PyEval_EvalCodeEx(), which vastly reduces the checks that must be
done before evaluating the frame.
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This comment block should be moved tofunction_code_fastcall().

@vstinner
Copy link
MemberAuthor

vstinner commentedFeb 11, 2017 via email

Oh in fact it was a deliberate choice to remove the comment. Python 3.7 nowhas a wide range of "fast call" functions which are designed for bestperformance. Do you think that it's worth it to keep the comment?

Copy link
Member

@methanemethane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I just checked all code is moved as-is.
I agree the comment block is not so important.

@vstinner
Copy link
MemberAuthor

vstinner commentedFeb 12, 2017 via email

Thank you for the review.

@vstinnervstinner merged commitc22bfaa intopython:masterFeb 12, 2017
@vstinnervstinner deleted the call_file branchJune 15, 2017 23:02
@jdemeyerjdemeyer mentioned this pull requestJun 25, 2018
@jdemeyer
Copy link
Contributor

Follow-up at#7909

paulmon added a commit to paulmon/cpython that referenced this pull requestJan 10, 2019
emmatyping added a commit to emmatyping/cpython that referenced this pull requestMar 16, 2020
isidentical referenced this pull request in isidentical/cpythonJun 29, 2021
* Handle lines with multi-byte unicode characters properly* Use Py_XDECREF instead of Py_DECREFCo-authored-by: Batuhan Taskaya <isidentical@gmail.com>Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
jaraco pushed a commit that referenced this pull requestDec 2, 2022
kumaraditya303 pushed a commit that referenced this pull requestOct 14, 2024
…cycles (#12… (#125476)Revert "gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#124959)"This reverts commitd5dbbf4.
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestOct 14, 2024
…PyFuture refcycles (pythonGH-12… (pythonGH-125476)Revert "pythongh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (pythonGH-124959)"This reverts commitd5dbbf4.(cherry picked from commite99650b)Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
1st1 pushed a commit that referenced this pull requestOct 14, 2024
…p and _PyFuture refcycles ... (#125486)* Revert "gh-125472: Revert "gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#12… (#125476)"This reverts commite99650b.* fix incompatability withgh-124392
dg-pb pushed a commit to dg-pb/cpython that referenced this pull requestOct 21, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@methanemethanemethane approved these changes

Assignees

No one assigned

Labels

performancePerformance or resource usage

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@vstinner@jdemeyer@methane@the-knights-who-say-ni

[8]ページ先頭

©2009-2025 Movatter.jp