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

Optimize NumericUtils.*ToPrefixCoded(), add versions that don't hash

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.2, 6.0
    • None
    • None
    • New

    Description

      As far as I can tell nothing actually uses the hash codes generated by these methods (not even any tests). If someone did want to generate a hash, it would be just as fast to do it on the BytesRef after the fact (or even faster from the input number itself).

      edit: Uwe pointed out they were used in one place. Other places still don't need it.

      Attachments

        1. LUCENE-4690.patch
          17 kB
          Yonik Seeley

        Activity

          People

            Unassigned Unassigned
            yseeley@gmail.com Yonik Seeley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: