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

Speed up Polygon2D construction

Details

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

    Description

      Polygon2D.create recursively sorts on each dimension to build a tree. However, it does not really need to sort the data, it just needs to compute the median and partition other values around it, which can be performed in O. If I am not mistaken, this would make Polygon2D.create run in O(n log) rather than O(n log^2) today.

      Attachments

        1. LUCENE-7309.patch
          6 kB
          Adrien Grand

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: