Skip to content

Runtime function #211

@BTV25

Description

@BTV25

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions