-
Notifications
You must be signed in to change notification settings - Fork 72
Closed
Description
I'm running into performance issues with the current inrange function when applying it to large numbers of target points—mainly due to memory allocated for returning all indices. To address this, I created [PR #209] that introduces an enhanced inrange variant allowing users to pass in a runtime callback function. This function is executed whenever in range indices are found, which avoids storing a vector of vectors and helps reduce memory usage.
I’ve included tests and documentation, and while it’s only slightly faster in practice, the memory efficiency improvement is significant. Hoping this addition can benefit others with similar constraints. Would appreciate any feedback!
Metadata
Metadata
Assignees
Labels
No labels