Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization: investigate faster search in array #234

Open
RaduBerinde opened this issue Aug 15, 2022 · 0 comments
Open

Optimization: investigate faster search in array #234

RaduBerinde opened this issue Aug 15, 2022 · 0 comments

Comments

@RaduBerinde
Copy link
Contributor

Some ideas for improving the binary search for array stores:
https://dirtyhandscoding.wordpress.com/2017/08/25/performance-comparison-linear-search-vs-binary-search/

IMO the two should be combined - binary search should be used to narrow down the range to the point where linear search is faster, then continue with that.

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

No branches or pull requests

1 participant