lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (LUCENE-5798) minor optimizations to MultiDocs(AndPositions)Enum.reset()
Date Tue, 01 Jul 2014 11:38:24 GMT


ASF subversion and git services commented on LUCENE-5798:

Commit 1607049 from [~rcmuir] in branch 'dev/trunk'
[ ]

LUCENE-5798: Optimize MultiDocsEnum reuse

> minor optimizations to MultiDocs(AndPositions)Enum.reset()
> ----------------------------------------------------------
>                 Key: LUCENE-5798
>                 URL:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message