Skip to content

Conversation

mpage
Copy link
Contributor

@mpage mpage commented Apr 12, 2025

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

…e in free-threaded builds

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

// 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
Contributor Author

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 chris-eibl added topic-free-threading performance Performance or resource usage interpreter-core (Objects, Python, Grammar, and Parser dirs) labels Apr 12, 2025
@mpage mpage requested a review from Yhg1s April 12, 2025 06:54
@mpage mpage marked this pull request as ready for review April 12, 2025 06:54
@mpage mpage requested a review from markshannon as a code owner April 12, 2025 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review interpreter-core (Objects, Python, Grammar, and Parser dirs) performance Performance or resource usage skip news topic-free-threading

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants