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

Build point writers only when needed on the BKD tree

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.x, master (9.0)
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      With the introduction of LUCENE-8699, I have realised the BKD tree uses quite a lot of heap even when it is not needed, for example for 1D points. 

      In this issue I propose to create point writers only when needed. In addition I propose to create PointWriters based on the estimated point count given in the constructor. 

        Attachments

        1. LatLonPointHEAP.png
          7 kB
          Ignacio Vera
        2. LUCENE-8703.patch
          16 kB
          Ignacio Vera
        3. LUCENE-8703.patch
          13 kB
          Ignacio Vera
        4. LUCENE-8703.patch
          13 kB
          Ignacio Vera

          Activity

            People

            • Assignee:
              ivera Ignacio Vera
              Reporter:
              ivera Ignacio Vera
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: