You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ryan Ernst (JIRA)" <ji...@apache.org> on 2014/07/01 06:47:24 UTC
[jira] [Commented] (LUCENE-5798) minor optimizations to
MultiDocs(AndPositions)Enum.reset()
[ https://issues.apache.org/jira/browse/LUCENE-5798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14048506#comment-14048506 ]
Ryan Ernst commented on LUCENE-5798:
------------------------------------
LGTM!
> minor optimizations to MultiDocs(AndPositions)Enum.reset()
> ----------------------------------------------------------
>
> Key: LUCENE-5798
> URL: https://issues.apache.org/jira/browse/LUCENE-5798
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Robert Muir
> Attachments: LUCENE-5798.patch
>
>
> This method is called by merging for each term, potentially many times, but only returning a few docs for each invocation (e.g. imagine high cardinality fields, unique id fields, normal zipf distribution on full text).
> Today we create a new EnumWithSlice[] array and new EnumWithSlice entry for each term, but this creates a fair amount of unnecessary garbage: instead we can just make this array up-front as size subReaderCount and reuse it.
--
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