Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-639

[PATCH] Slight performance improvement for readVInt() of IndexInput

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 2.0.0
    • None
    • core/index
    • None

    Description

      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

      Attachments

        1. readVInt performance results.pdf
          17 kB
          Johan Stuyts
        2. ReadVIntPerformanceMain.java
          12 kB
          Johan Stuyts
        3. Lucene2ReadVIntPerformance.patch
          1.0 kB
          Johan Stuyts

        Activity

          People

            Unassigned Unassigned
            jstuyts Johan Stuyts
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: