Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 95270 invoked from network); 10 Aug 2009 16:38:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Aug 2009 16:38:31 -0000 Received: (qmail 35347 invoked by uid 500); 10 Aug 2009 16:38:37 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 35253 invoked by uid 500); 10 Aug 2009 16:38:37 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 35244 invoked by uid 99); 10 Aug 2009 16:38:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 16:38:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 16:38:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C49A4234C004 for ; Mon, 10 Aug 2009 09:38:14 -0700 (PDT) Message-ID: <1334601098.1249922294790.JavaMail.jira@brutus> Date: Mon, 10 Aug 2009 09:38:14 -0700 (PDT) From: "Uwe Schindler (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-1796) Speed up repeated TokenStream init In-Reply-To: <521476331.1249917315116.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741416#action_12741416 ] Uwe Schindler commented on LUCENE-1796: --------------------------------------- Mark: The only hotspot could be initTokenWrapper(), which does some checks, but normally shortcuts in filters to the input TokenStream's TokenWrapper instance. Using incrementToken() would not help here, only if you switch of using the old API complete using TokenStream.setOnlyUseNewAPI(true), which can only be done globally, so all Solr TokenStreams must implement incrementToken(). > 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 > > > 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