kaivalnp commented on PR #16979:
URL: https://github.com/apache/lucene/pull/16979#issuecomment-6641897515

   @shubhamvishu interesting find!
   
   I wonder if this optimization is impactful _because_ bulk scoring is not 
implemented for quantized vectors?  
     
   The JVM should be smart enough to prefetch, when loading multiple vectors 
from off-heap in a tight loop like:
   
   
https://github.com/apache/lucene/blob/aa366ae209ae8296dd70d2835c6d47f8fc201972/lucene/core/src/java25/org/apache/lucene/internal/vectorization/MemorySegmentBulkVectorOps.java#L107-L113
     
   To verify: can you confirm if the gains hold for non-quantized `float` 
vectors too? (needs additional changes to "touch" bytes in `float` vectors too)
     
   If not: perhaps we can implement bulk scoring for quantized vectors as the 
clean, long-term solution here? #15155


-- 
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]

Reply via email to