jpountz commented on pull request #2176:
URL: https://github.com/apache/lucene-solr/pull/2176#issuecomment-753490290


   > In future we should throw away on coping/loading our stuff to heap and 
maybe throw away IndexInput completely and base our code fully on random 
access. The new foreign-vector APIs will in future also be written with 
MemorySegment in its focus. So you can allocate a vector view on a 
MemorySegment and let the vectorizer fully work outside java heap inside our 
mmapped files! :-)
   
   +1 Things work like they do today because auto-vectorization only works on 
on-heap arrays, and this readLELongs method was the fastest way to copy data 
from a directory to a long[]. @msokolov and I were just discussing a few days 
ago how this vector API might help drop the copy entirely in the future, which 
would be great.
   
   


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