yossev opened a new pull request, #15027:
URL: https://github.com/apache/lucene/pull/15027

   Replaced the two-step prefix sum loop in `Lucene99HnswVectorsReader` with a 
single-loop variant that avoids redundant memory access and improves 
performance.
   
   
   
   Previous approach:
   - Read first value separately.
   - Then used previous buffer element + readVInt().
   
   New approach:
   - Accumulates sum in a single pass and assigns directly.
   
   This change follows the suggestion from issue #14979 and has the same 
functional behavior with slightly better efficiency.
   


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

Reply via email to