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

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

Commit 44d7d962ae42cfca7070a8e2c84ab059fec21e10 in lucene's branch 
refs/heads/main from Adrien Grand
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=44d7d96 ]

LUCENE-10408: Write doc IDs of KNN vectors as ints rather than vints. (#708)

Since doc IDs with a vector are loaded as an int[] in memory, this changes the
on-disk format of vectors to align with the in-memory representation by using
ints instead of vints to represent doc IDs. This might make vectors a bit
larger on disk, but also a bit faster to open.

I made the same change to how we encode nodes on levels for the same reason.

> Better dense encoding of doc Ids in Lucene91HnswVectorsFormat
> -------------------------------------------------------------
>
>                 Key: LUCENE-10408
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10408
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Mayya Sharipova
>            Assignee: Mayya Sharipova
>            Priority: Minor
>             Fix For: 9.1
>
>          Time Spent: 5.5h
>  Remaining Estimate: 0h
>
> Currently we write doc Ids of all documents that have vectors as is.  We 
> should improve their encoding either using delta encoding or bitset.



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