kaivalnp commented on PR #16799: URL: https://github.com/apache/lucene/pull/16799#issuecomment-7049910345
Interesting change @slow-J! Does the native function enable use of an instruction that the JVM _**does not**_ compile to? High-level: this PR enables "off-heap bulk-scoring" specifically for the native provider + 4-bit quantization; that seems beneficial whether or not native vectorization is used, and for all quantization levels. IMO for more comprehensive benefits + simpler code: we should (1) add "off-heap bulk-scoring" generically (including the Panama path), and (2) promote `MemorySegment` based vector scoring functions to `VectorUtil`. Then using optimized instructions for specific cases becomes easier: simply create a new C function and link it from `NativeVectorUtilSupport`. The actual C implementation of the 4-bit bulk-scoring dot-product in this PR is useful here! -- 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]
