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

BytesRefArray can be more efficient for fixed width values

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.1, 7.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: