-
Notifications
You must be signed in to change notification settings - Fork 7
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
Eliminate some allocations from ordinary index search #264
Comments
We have ended up implementing the |
Note that #393 introduces a variable |
During further changes within #393, things were arranged differently such that now the above-mentioned issue doesn’t occur anymore. |
There were sensible strictness annotations introduced as part of #393. We should check whether a micro-benchmark is still needed or whether we can trust that the present implementation is fine. |
A micro-benchmark would still be useful IMO, and it does not have to be a particularly elaborate one |
The
search
function of the ordinary index can probably get by with less allocations. We shall conduct a micro-benchmark in the style of the compact-index micro-benchmark and use its results to reduce the allocation count by turning specific patterns into bang patterns. See #244 (comment) and follow-ups.We shall extend the above-mentioned optimization to the
binarySearchL
function for immutable vectors, which is used bysearch
, in case we haven’t ended up implementing that function by reusingbinarySearchL
fromvector-algorithms
.The text was updated successfully, but these errors were encountered: