Skip to content

Avoid tiny numpy arrays in numba: optimize intersections.py #1726

Closed

Description

@Sevans711

Sub-issue of #1648 to track: should apply this optimization throughout the intersections.py file: don't construct many tiny numpy arrays inside numba routines.

Additionally, refactor the intersections.py routines to restore prior behavior of using 3-vector inputs and outputs, but to maintain performance improvements just accept tuples instead of requiring the allocation of tiny numpy arrays. Methods were recently "scalarized" via PR #1688, but the discussion there clarified that the intent was to restore to the pre-scalarized function interfaces where possible, as long as performance gains remain intact.

Activity

  1. self-assigned this
    on Sep 1, 2026
  2. moved this from 📚 Backlog to 🏗 In progress in UXarray Developmenton Sep 1, 2026
  3. added
    scalability
    on Sep 1, 2026
  4. moved this from 🏗 In progress to 👀 In review in UXarray Developmenton Sep 2, 2026
  5. moved this from 👀 In review to ✅ Done in UXarray Developmenton Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

scalability

Type

No type

Fields

Priority

None yet

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions