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

Use computed mask values in ForUtil

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 8.8
    • core/codecs
    • None
    • New

    Description

      In the class ForkUtil, mask values have been computed and stored in static final vailables, but they are recomputed for every encoding, which may be unnecessary. 

      anther small fix is that change

      remainingBitsPerValue > remainingBitsPerLong

       to

      remainingBitsPerValue >= remainingBitsPerLong

      otherwise

      if (remainingBitsPerValue == 0) {
       idx++;
       remainingBitsPerValue = bitsPerValue; 
      }
      

      these code will never be used.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gf2121 Feng Guo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3.5h
                  3.5h