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

gh-132336: Only mark slow path functions used by the interpreter loop as noinline in free-threaded builds#132424

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

Open
mpage wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
frommpage:gh-132336-noinline-ft-only

Conversation

mpage
Copy link
Contributor

@mpagempage commentedApr 12, 2025
edited by bedevere-appbot
Loading

There is concern that this is slowing down the default build.

…e in free-threaded buildsThere is concern that this is slowing down the default build.
@@ -374,6 +374,14 @@ extern "C" {
# define Py_NO_INLINE
#endif

// FT_NO_INLINE
// Disable inlining of a function only in the free-threaded build.
#if defined(Py_GIL_DISABLED)
Copy link
Member

Choose a reason for hiding this comment

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

Referring to Marks comment#132336 (comment)

What we do or do not want to inline depends on whether it is a tail-calling build or not.

this should maybe depend on tail-calling, too?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Benchmark results suggest that it doesn't matter.

chris-eibl reacted with thumbs up emoji
@chris-eiblchris-eibl added topic-free-threading performancePerformance or resource usage interpreter-core(Objects, Python, Grammar, and Parser dirs) labelsApr 12, 2025
@mpagempage requested a review fromYhg1sApril 12, 2025 06:54
@mpagempage marked this pull request as ready for reviewApril 12, 2025 06:54
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@chris-eiblchris-eiblchris-eibl left review comments

@Yhg1sYhg1sAwaiting requested review from Yhg1s

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

Assignees
No one assigned
Labels
awaiting core reviewinterpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usageskip newstopic-free-threading
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@mpage@chris-eibl

[8]ページ先頭

©2009-2025 Movatter.jp