Skip to content

Performance improvements for take #279

Description

@Dandandan

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Take is a critical function that is used in quite some code and is hot up in profiling. It seems like we should be able to speed it up.

Two improvements we can do:

  • Bound checks are about 25% of the work (in take benchmark)
  • SIMD could be utilized.

Describe the solution you'd like
Check whether we can eliminate / avoid bound checks.
Add SIMD versions of take

Describe alternatives you've considered

Additional context

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

    enhancementAny new improvement worthy of a entry in the changelog

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions