Skip to content

Add a list fast path for STORE_SLICE #162784

Backlog

Description

@josh-hurst

List slice assignment builds a temporary slice even when the target is an exact list and the replacement has the same length. This shows up in fannkuch, which repeatedly reverses short prefixes. On an M4 Pro, a prototype reduced median fannkuch(9) time from 191.765 ms to 162.340 ms across five paired runs.

Found and written by an AI optimization pipeline I run; I reviewed every line, ran the tests and sanitizers, and can answer for it.

Linked PRs

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions