uschindler commented on pull request #177:
URL: https://github.com/apache/lucene/pull/177#issuecomment-861492558


   The issue is confirmed and for the readBytes() code there's already a 
workaround. Long term we will improve
   
   For the float and long options:  copyMemory() has some overhead for small 
array sizes, so the recommendation by Panama and Hotspot engineers is to remove 
the specialization from Lucene at all. readLongs() will only read a maximum of 
64 longs, a loop with removed bounds checks will do much better here than an 
explicit memory copy.
   
   For vectors I have the same feeling, but there we should go in direction of 
removing readFloats() alltogether and replace by a method returning a 
FloatVector() view instead.


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

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