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

optimizations for bufferedindexinput

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1, 4.0-ALPHA
    • 3.1, 4.0-ALPHA
    • None
    • None
    • New, Patch Available

    Description

      along the same lines as LUCENE-2816:

      • the readVInt/readVLong/readShort/readInt/readLong are not optimal here since they defer to readByte. for example this means checking the buffer's bounds per-byte in readVint instead of per-vint.
      • its an easy win to speed this up, even for the vint case: its essentially always faster, the only slower case is 1024 single-byte vints in a row, in this case we would do a single extra bounds check (1025 instead of 1024)

      Attachments

        1. LUCENE-2824.patch
          5 kB
          Robert Muir

        Activity

          People

            rcmuir Robert Muir
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: