lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1796) Speed up repeated TokenStream init
Date Mon, 10 Aug 2009 18:15:14 GMT

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

Uwe Schindler commented on LUCENE-1796:
---------------------------------------

Ah, you are right! I will try this out. The Iterator returned by getAttributeImplsIterator()
could then also be implemented using the State. This iterator would not be used internally
by AttributeSource (there the State is iterated directly), but e.g. in TeeSinkTokenStream.
So supplying an iterator is still needed, but internally the faster direct State iteration
can be used.

I will try this out and re-enable clearAttribute() in the Tokenizers again.

> Speed up repeated TokenStream init
> ----------------------------------
>
>                 Key: LUCENE-1796
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1796
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Mark Miller
>            Assignee: Uwe Schindler
>             Fix For: 2.9
>
>         Attachments: LUCENE-1796.patch, LUCENE-1796.patch, LUCENE-1796.patch
>
>
>  by caching isMethodOverridden results

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message