usearch icon indicating copy to clipboard operation
usearch copied to clipboard

Feature: Should `prefetch` be called in `index_gt::search_exact_`

Open mapleFU opened this issue 8 months ago • 0 comments

Describe what you are looking for

Currently, the prefetch would be called if not dummy if !exact, would it also be called before search_exact_, like:

        if (!top.reserve(wanted)) return result.failed("Out of memory!");
+        if (!is_dummy<prefetch_at>()) {
+         prefetch(citerator_at(0), citerator_at(size()));
+       }
        search_exact_(query, metric, predicate, wanted, context);

Can you contribute to the implementation?

  • [x] I can contribute

Is your feature request specific to a certain interface?

It applies to everything

Contact Details

[email protected]

Is there an existing issue for this?

  • [x] I have searched the existing issues

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

mapleFU avatar Apr 14 '25 11:04 mapleFU