Skip to content

Remove LOAD_CLOSURE #105775

Closed
Closed
@markshannon

Description

@markshannon

LOAD_CLOSURE is identical to LOAD_FAST_CHECK in every way except its name and number.

The justification for its existence is that "We keep LOAD_CLOSURE so that the bytecode stays more readable.".
Which is insufficient justification to keep it given that it:

  • Uses an instruction, a limited resource which adds bulk to the interpreter
  • Prevents superinstruction formation.
  • Prevents removal of checks for uninitialized variables.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions