Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 40978 invoked from network); 7 Aug 2006 10:12:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Aug 2006 10:12:04 -0000 Received: (qmail 77441 invoked by uid 500); 7 Aug 2006 10:12:01 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 77292 invoked by uid 500); 7 Aug 2006 10:12:00 -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 77165 invoked by uid 99); 7 Aug 2006 10:12:00 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 03:11:56 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BFB9C410016 for ; Mon, 7 Aug 2006 09:39:15 +0000 (GMT) Message-ID: <2348556.1154943555782.JavaMail.jira@brutus> Date: Mon, 7 Aug 2006 02:39:15 -0700 (PDT) From: "Johan Stuyts (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-639) [PATCH] Slight performance improvement for readVInt() of IndexInput In-Reply-To: <25591452.1154075533973.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/LUCENE-639?page=comments#action_12426181 ] Johan Stuyts commented on LUCENE-639: ------------------------------------- Yonik, I agree that instead of using artificial data sets instead of real ones might influence the results. Getting my hands on real, large data is going to be difficult. I also think that you drew your conclusion too fast. You only ran the tests on a few JVMs. As you can see from the test results that I submitted, the differences between JVMs are significant. There is no perfect algorithm which runs better on all JVMs, but I think that algorithms that run better on most JVMs exist. > [PATCH] Slight performance improvement for readVInt() of IndexInput > ------------------------------------------------------------------- > > Key: LUCENE-639 > URL: http://issues.apache.org/jira/browse/LUCENE-639 > Project: Lucene - Java > Issue Type: Improvement > Components: Index > Affects Versions: 2.0.0 > Reporter: Johan Stuyts > Priority: Minor > Attachments: Lucene2ReadVIntPerformance.patch, readVInt performance results.pdf, ReadVIntPerformanceMain.java > > > By unrolling the loop in readVInt() I was able to get a slight, about 1.8 %, performance improvement for this method. The test program invoked the method over 17 million times on each run. > I ran the performance tests on: > - Windows XP Pro SP2 > - Sun JDK 1.5.0_07 > - YourKit 5.5.4 > - Lucene trunk -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org