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-5797) improve speed of norms merging
Date Tue, 01 Jul 2014 13:56:24 GMT

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

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

Commit 1607080 from [~rcmuir] in branch 'dev/branches/branch_4x'
[ https://svn.apache.org/r1607080 ]

LUCENE-5797: Optimize norms merging

> improve speed of norms merging
> ------------------------------
>
>                 Key: LUCENE-5797
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5797
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Robert Muir
>             Fix For: 4.10
>
>         Attachments: LUCENE-5797.patch
>
>
> Today we use the following procedure:
> * track HashSet<Long> uniqueValues, until it exceeds 256 unique values.
> * convert to array, sort and assign ordinals to each one
> * create encoder map (HashMap<Long,Integer>) to encode each value.
> This results in each value being hashed twice... but the vast majority of the time people
will just be using single-byte norms and a simple array is enough for that range.



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