[ https://issues.apache.org/jira/browse/LUCENE-10394 ]


    Gautam Worah deleted comment on LUCENE-10394:
    ---------------------------------------

was (Author: gworah):
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to