You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/10/06 21:36:00 UTC

[jira] [Commented] (LUCENE-10150) ByteBuffersDataInput should override readLongs?

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

ASF subversion and git services commented on LUCENE-10150:
----------------------------------------------------------

Commit ba75dc5e6bf7e90b8c40906ba8ca7b258a5b39c0 in lucene's branch refs/heads/main from Robert Muir
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=ba75dc5 ]

LUCENE-10150: override ByteBuffersDataInput readLong/readInt/readShort

Optimize these relative-read methods to no longer read
one-byte-at-a-time.

This speeds up common scenarios such as reading postings from in-memory
directory / nrt-caching directory.


> ByteBuffersDataInput should override readLongs?
> -----------------------------------------------
>
>                 Key: LUCENE-10150
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10150
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Robert Muir
>            Priority: Major
>
> This DataInput optimizes readFloats() with a FloatBuffer view, but does nothing for readLongs().
> Currently readLongs() will read the entire array one-byte-at-a-time.
> With LUCENE-10149, it will go eight-bytes-at-a-time.
> But we could override this method and optimize it further, to reduce bounds checks and speed up postings.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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