Skip to content

Add BINARY_SLICE and STORE_SLICE instructions. #94163

Description

@markshannon

We want this, because:

  • Specializing for indexing by int and by slice are different and should be treated differently
  • It avoids creating the temporary slice object.
  • Indexing by slice is syntactically distinct from indexing by object. The compiler can generate better code if it has different instructions.

For full discussion see faster-cpython/ideas#319

Activity

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

    performancePerformance or resource usage

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions