lucene-dev mailing list archives

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

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


Mime
View raw message