You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Christian Ziech (JIRA)" <ji...@apache.org> on 2014/05/14 16:55:15 UTC

[jira] [Updated] (LUCENE-5670) org.apache.lucene.util.fst.FST should skip over outputs it is not interested in

     [ https://issues.apache.org/jira/browse/LUCENE-5670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Ziech updated LUCENE-5670:
------------------------------------

    Attachment: LUCENE-5670.patch

Attached an (untested) patch where a "skipOutput" method is added to the outputs which doesn't create excess objects. Default implementation is the current behavior by invoking the read() method.

Also a skipBytes(int) method was added to the DataInput which defaults to reading the data as before. Several implementations of the DataInput already had a skipBytes() method and now effectively implement it.

> org.apache.lucene.util.fst.FST should skip over outputs it is not interested in
> -------------------------------------------------------------------------------
>
>                 Key: LUCENE-5670
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5670
>             Project: Lucene - Core
>          Issue Type: Improvement
>    Affects Versions: 4.7
>            Reporter: Christian Ziech
>            Priority: Minor
>         Attachments: LUCENE-5670.patch
>
>
> Currently the FST uses the read(DataInput) method from the Outputs class to skip over outputs it actually is not interested in. For most use cases this just creates some additional objects that are immediately destroyed again.
> When traversing an FST with non-trivial data however this can easily add up to several excess objects that nobody actually ever read.



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