[
https://issues.apache.org/jira/browse/LUCENE-2949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025478#comment-13025478
]
Grant Ingersoll commented on LUCENE-2949:
-----------------------------------------
I haven't looked at the patch yet, but the setExpectations is basically there
in case you wish to pre allocate any structures.
> FastVectorHighlighter FieldTermStack could likely benefit from using
> TermVectorMapper
> -------------------------------------------------------------------------------------
>
> Key: LUCENE-2949
> URL: https://issues.apache.org/jira/browse/LUCENE-2949
> Project: Lucene - Java
> Issue Type: Improvement
> Affects Versions: 3.0.3, 4.0
> Reporter: Grant Ingersoll
> Assignee: Koji Sekiguchi
> Priority: Minor
> Labels: FastVectorHighlighter, Highlighter
> Fix For: 3.2, 4.0
>
> Attachments: LUCENE-2949.patch
>
>
> Based on my reading of the FieldTermStack constructor that loads the vector
> from disk, we could probably save a bunch of time and memory by using the
> TermVectorMapper callback mechanism instead of materializing the full array
> of terms into memory and then throwing most of them out.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]