Skip to content

idx_to_str appears to significantly slow down scan numba code by applying np.array to scan_inner_func inputs #233

Closed
@jessegrabowski

Description

@jessegrabowski

Description

@ricardoV94 was doing some benchmarking of numba code generated by scan, and we discovered that wrapping output outer_in values with np.array significantly slows down the scans. Some speed tests are here. Cliff's notes:

  • The numba code scan generates is 100x slower than a vectorized numba function
  • This speed difference is entirely due to wrapping outer_in with np.array in the idx_to_str function.

I'm going to test removing the np.array part entirely and run the test suite to see what happens, but in the meantime I'm opening this issue to ask if anyone knows why this exists.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions