Skip to content

Add replication to LOAD_FAST_BORROW to speed up the JIT #134140

Closed
@Fidget-Spinner

Description

@Fidget-Spinner

Feature or enhancement

Proposal:

This is relatively straightforward, but requires a lot of googling issue/PR searching before understanding what's happening. Please don't take this issue unless you're a sprinter at PyCon US, and if you want to take it there, ask @brandtbucher.

Basically, LOAD_FAST has replicate(x) in bytecodes.c, but not LOAD_FAST_BORROW. Considering LOAD_FAST_BORROW is now more common than LOAD_FAST, we should replicate it.

Reserving this issue for someone sprinting at PyCon US, to welcome them to the community with a fairly small-scale, but likely to improve performance issue.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Activity

Fidget-Spinner

Fidget-Spinner commented on May 17, 2025

@Fidget-Spinner
MemberAuthor

My bad. It seems it's already replicated. Sorry for the noise!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Add replication to LOAD_FAST_BORROW to speed up the JIT · Issue #134140 · python/cpython

      Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

      Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant