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

Christian Ziech commented on LUCENE-5670:
-----------------------------------------

No actually only some of the subclasses of DataInput had a skipBytes() 
implementation - e.g. the BytesReader() intermediate abstract class added it to 
the interface and also the ByteArrayDataInput had it before. Maybe one should 
scan over all the other implementations if they had a similar method that was 
just named differently or could implement it (e.g. IndexInput could easily 
implement the skip method as a comination of seek and getFilePointer).

> 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
>            Assignee: Michael McCandless
>            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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to