Skip to content

Improve performance of array_position with scalar needle #20530

Description

@neilconway

Is your feature request related to a problem or challenge?

array_position with a scalar needle could be optimized in a similar way to array_has, which would probably yield a big speedup.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. neilconway commented on Feb 24, 2026

    @neilconway
    ContributorAuthor

    take

  2. added a commit that references this issue on Feb 26, 2026
    d6fb360
  3. added a commit that references this issue on Mar 24, 2026
    d1d6dfb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions