Skip to content

PERF: better use of searchsorted for indexing performance  #14565

Closed
@jorisvandenbossche

Description

@jorisvandenbossche

Follow-up on #14551

When searchsorted is used (eg as labels.searchsorted(loc)), it is important that loc is first cast to the same dtype as labels for performance reasons.

PR #14551 fixed one such example, but further actions:

  • check the other usages of searchsorted for this pattern
  • add benchmarks to track the improvement

Metadata

Metadata

Assignees

No one assigned

    Labels

    IndexingRelated to indexing on series/frames, not to indexes themselvesPerformanceMemory or execution speed performance

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions