Skip to content

Conversation

@mrhooray
Copy link
Owner

@mrhooray mrhooray commented Nov 9, 2025

Summary

  • Change within method to return unordered results (removing sorting overhead)
  • Remove within_unsorted method and associated benchmarks
  • Update tests to expect unordered results from within method
  • Users who need sorted radius queries should use nearest_within_radius
  • Simplify API surface area while improving performance for unordered radius queries

This change provides a clear separation between ordered and unordered radius queries. The within method now focuses on performance with unordered results, while nearest_within_radius handles sorted results when distance ordering is required.

@mrhooray mrhooray changed the title refactor: remove within_unsorted method and benchmarks refactor: change within method to return unordered results Nov 9, 2025
Remove within_unsorted method and update within method to return unordered results.
This provides a clear separation between ordered and unordered radius queries.

- Remove within_unsorted method and benchmarks
- Update within method to return unsorted results (removing sorting step)
- Update tests to expect unordered results from within method
- Users who need sorted radius queries should use nearest_within_radius
- Simplify API surface area while improving performance for unordered radius queries
@mrhooray mrhooray merged commit 14d8d2f into master Nov 9, 2025
3 checks passed
@mrhooray mrhooray deleted the dev branch November 9, 2025 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants