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

BytesRefArray can be more efficient for fixed width values

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.1, 7.0
    • None
    • None
    • New

    Description

      Today BytesRefArray uses one int (int[], overallocated) per
      value to hold the length, but for dimensional points these values are
      always the same length.

      This can save another 4 bytes of heap per indexed dimensional point,
      which is a big improvement (more points can fit in heap at once) for
      1D and 2D lat/lon points.

      Attachments

        1. LUCENE-7122.patch
          30 kB
          Michael McCandless
        2. LUCENE-7122.patch
          19 kB
          Michael McCandless
        3. LUCENE-7122.patch
          6 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: