Skip to content

dispatch_to_series is very slow #26061

Closed
Closed
@RunningToTheEdgeOfTheWorld

Description

Since pandas 0.24.0 I found there is a function in ops.py named dispatch_to_series.
But dispatch_to_series is very slow, that makes my code slower.
when I use pandas==0.23.0, it cost about 100 seconds, but when I use pandas==0.24.* It cost 583 seconds.

This is my profile result.
factor_test_1555059433
A and I found pandas become more slower because you call isinstance function too many times
link to history merge : [PERF] use numexpr in dispatch_to_series #22284

Metadata

Metadata

Assignees

No one assigned

    Labels

    Numeric OperationsArithmetic, Comparison, and Logical operationsPerformanceMemory or execution speed performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions