Content-Length: 249462 | pFad | https://github.com/python/cpython/issues/94163

45 Add `BINARY_SLICE` and `STORE_SLICE` instructions. · Issue #94163 · python/cpython · GitHub
Skip to content

Add BINARY_SLICE and STORE_SLICE instructions. #94163

@markshannon

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

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









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/94163

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy