uschindler commented on issue #12482: URL: https://github.com/apache/lucene/issues/12482#issuecomment-1660657815
I have something like this on the agenda but it's currently impossible with non released API and Java 11. There is another solution: ByteBuffer is still there and you can create vector as view on ByteBuffer. So we could add some DataInput method which returns a byte buffer view on a segment (if the vector is on buffer boundary the copy would of course take place). Please take in mind that I don't trust the benchmark fully. There are more complications not tested here: you have to make a slice first and so on. If someone uses another indexinput the default impl would use readBytes or readFloat and wrap it with a heap buffer. -- 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