lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-639) [PATCH] Slight performance improvement for readVInt() of IndexInput
Date Fri, 28 Jul 2006 14:49:15 GMT
    [ http://issues.apache.org/jira/browse/LUCENE-639?page=comments#action_12424103 ] 
            
Yonik Seeley commented on LUCENE-639:
-------------------------------------

The problem is that one needs to know the distribution of vints for calls to readVInt() in
a real Lucene index/application to judge if it's actually faster or not.  I took a shot at
a number of versions about 6 months ago:

http://www.nabble.com/Lucene-performance-bottlenecks-tf659097.html#a1833842


> [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
>
>
> 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


Mime
View raw message