Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Optimisation: avoid destructure the array in function parameters. #155

@dannywillems

Description

@dannywillems
          you call the function with the full array. this statement here happens inside the function. it destructures the full array to drop the first element. so we create a copy which has 1 element less.

again, I want to avoid the error-prone inline index-shifting

Originally posted by @mitschabaude in #140 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions