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

Don't inline slow path functions in the interpreter loop #132336

Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagetype-featureA feature request or enhancement
@mpage

Description

@mpage

Feature or enhancement

Proposal:

I was looking at the IPA inlining dump as part of investigating the root cause ofgh-132295 and noticed that we're inlining a number of slow path functions related to specialization, instrumentation, and error handling in the interpreter loop when performing LTO (full listhere):

_Py_Specialize_CallKw_Py_Specialize_CompareOp_Py_Specialize_ContainsOp_Py_Specialize_ForIter_Py_Specialize_LoadGlobal_Py_Specialize_LoadSuperAttr_Py_Specialize_Send_Py_Specialize_StoreAttr_Py_Specialize_StoreSubscr_Py_Specialize_ToBool_Py_Specialize_UnpackSequence_Py_call_instrumentation_Py_call_instrumentation_instruction_Py_call_instrumentation_lineget_exception_handler

I suspect these are being inlined because we use unit tests for collecting PGO data. These should be executed relatively infrequently for "normal" Python code. We should mark them asnoinline.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagetype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp