[
https://issues.apache.org/jira/browse/LUCENE-1796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741373#action_12741373
]
Robert Muir commented on LUCENE-1796:
-------------------------------------
unrelated to TokenStream init, but what appears to be creating additional
slowdown is this:
{noformat}
TRACE 300197:
org.apache.lucene.util.AttributeSource.getAttributeImplsIterator(AttributeSource.java:140)
org.apache.lucene.util.AttributeSource.clearAttributes(AttributeSource.java:233)
org.apache.lucene.analysis.CharTokenizer.incrementToken(CharTokenizer.java:56)
org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:189)
{noformat}
even with reusableTokenStreams, I am still seeing a slowdown and with fairly
granular profiling, this is consistently at the top.
is there a way to optimize clear() in any way?
> 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
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]