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

FST should use packed integer arrays

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0-ALPHA, 6.0
    • core/FSTs
    • None
    • New

    Description

      There are some places where an int[] could be advantageously replaced with a packed integer array.

      I am thinking (at least) of:

      • FST.nodeAddress (GrowableWriter)
      • FST.inCounts (GrowableWriter)
      • FST.nodeRefToAddress (read-only Reader)

      The serialization/deserialization methods should be modified too in order to take advantage of PackedInts.get

      {Reader,Writer}

      .

      Attachments

        1. LUCENE-4120.patch
          30 kB
          Adrien Grand
        2. LUCENE-4120.patch
          32 kB
          Adrien Grand
        3. LUCENE-4120.patch
          32 kB
          Adrien Grand

        Activity

          People

            jpountz Adrien Grand
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: