uschindler commented on issue #12788:
URL: https://github.com/apache/lucene/issues/12788#issuecomment-1803537830

   Hi,
   
   for correct vectorization please make use of the official Lucene framework 
(add your implementation class' instance for the scalar and the vectorized 
variant as a separate getter to `VectorizationProvider`). 
   
   Warning: If you have the wrong Java version, wrong Hotspot version it may be 
slower. In addition, the use of "max" may need special CPUs. As soon as you 
have a CPU not supporting this operation, it will be 100 times slower and a 
scalar variant is better.
   
   The problem is also that Lucene tests run with C2 disabled, so vectorization 
is slow as it is not compiled to machine code. You must run the benchmark 
outside of Lucene. Ideally implement it in `VectorizationProvider` as a 
separate class.
   
   To benchmark then use the `benchmark-jmh` Gradle module. This will enable 
vectorization if all is sane.


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