jimczi commented on PR #16656: URL: https://github.com/apache/lucene/pull/16656#issuecomment-5790260964
> I already built parts of it [in my private branch](https://github.com/apache/lucene/compare/main...goankur:lucene:prefetch-rerank-clean) so please take a look and advise the changes that would be suitable for the new PR. Yep that s exactly this. Currently the api is modelled after the HNSW use case that prefetches N neighbours at a time. Since they are random they just call prefetch N times on different part of the file. A more natural API for prefetch would be `int prefetch(int ord, int size)` to prefetch contiguous vectors (size=1 for a single one) and then the multiple ords one just call the contiguous prefetch N times. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
