benwtrent opened a new pull request, #13200: URL: https://github.com/apache/lucene/pull/13200
Opening this PR VERY early for discussion as I didn't want to spend a bunch of time doing all the refactoring necessary if we thought the API was wrong. This is nowhere near finished. This is an attempt to satisfy https://github.com/apache/lucene/issues/13182 I think in the future the `[Byte|Float]VectorProvider` could expose "off-heap" focused things. This is why I separated them from the `RandomVectorValue<T>` things (an interface I don't particularly like anyways...). We have seen that being able to optimize to either load MemorySegments directly into Vectors or just use off-heap functions is way faster than reading on heap. Folks who will likely be interested in this conversation: @uschindler @ChrisHegarty I have never made a new SPI interface before, so I likely haven't completed it or done it correctly at all. -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org