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

Appearance settings

Optimize int operations by mutating uniquely-referenced operands in place (JIT only) #146640

Copy link
Copy link
@eendebakpt

Description

@eendebakpt
Issue body actions

Feature or enhancement

Proposal:

When the tier 2 optimizer can prove that an operand to a int binary operation is uniquely referenced, we can mutate it in place instead of allocating a new object. This avoids a an int allocation and the subsequent deallocation of the consumed operand on every iteration.

The approach is similar to #146307. Also see #90530.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usagetopic-JITtype-featureA feature request or enhancementA feature request or enhancement
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.