You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Gautam Worah (Jira)" <ji...@apache.org> on 2022/02/25 03:04:00 UTC

[jira] [Commented] (LUCENE-10394) Explore moving ByteBuffer(sData|Index)Input to absolute bulk gets

    [ https://issues.apache.org/jira/browse/LUCENE-10394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17497873#comment-17497873 ] 

Gautam Worah commented on LUCENE-10394:
---------------------------------------

I'll try to work on this soon. Looking into the ByteBuffer API in the meantime.

> Explore moving ByteBuffer(sData|Index)Input to absolute bulk gets
> -----------------------------------------------------------------
>
>                 Key: LUCENE-10394
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10394
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Adrien Grand
>            Priority: Minor
>
> With the move to Java 17, we now have access to absolute bulk gets on ByteBuffers: https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html#get(int,byte%5B%5D,int,int). We should look into whether this helps with our more random-access workloads like binary doc values, conjunctive queries and building HNSW graphs.
> ByteBuffersDataInput already tries to access the underlying buffers in a random-access fashion and works around the lack of absolute bulk gets by doing {{ByteBuffer#duplicate()}}. It looks like a low hanging fruit to stop duplicating the buffer and just do an absolute bulk get instead. ByteBuffersIndexInput would require a bit more work since it's performing relative reads whenever possible.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org