lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-5767) OrdinalMap optimizations
Date Fri, 20 Jun 2014 01:31:25 GMT

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

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

Commit 1604070 from [~rcmuir] in branch 'dev/branches/lucene_solr_4_9'
[ https://svn.apache.org/r1604070 ]

LUCENE-5767: remove bogus cast (in this case can exceed Integer.MAX_VALUE, and the underlying
delta reader takes long anyway)

> OrdinalMap optimizations
> ------------------------
>
>                 Key: LUCENE-5767
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5767
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: 4.9, 5.0
>
>         Attachments: LUCENE-5767.patch, LUCENE-5767.patch
>
>
> OrdinalMap does its best to store a mapping from segment to global ordinals with as little
memory as possible using {{MonotonicAppendingLongBuffer}}. In the low-cardinality case, there
are things that could be optimized though:
>  - on large segments, it's quite likely that the segment ordinals will perfectly match
the global ordinals. In that case there is nothing to do, we can just return the segment ordinal
as-is.
>  - even if they don't, it might be that storing the global ordinals directly in a PackedInts.Mutable
only takes slightly more memory while removing the overhead of the monotonic encoding.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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


Mime
View raw message