Lucene - Core
  1. Lucene - Core
  2. LUCENE-639

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

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: core/index
    • Labels:
      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
      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

          • Assignee:
            Unassigned
            Reporter:
            Johan Stuyts
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development