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

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

Hm, and with the termAtt.clear() instead of clearAttributes? Was the 46-47 with 
the clearAttributes call or without? You always have the problem with very 
short TokenStreams that are not reused, that the initialization and State 
linked-list construction needs some time. In the reused case, it should be 
faster with the latest patch or without clearAttributes at all.

Where is the hotSpot? Do you have a figure like before the patch with method 
execution times?

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

Reply via email to