lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Commented] (LUCENE-7309) Speed up Polygon2D construction
Date Wed, 01 Jun 2016 09:25:59 GMT


Robert Muir commented on LUCENE-7309:

I am curious how it compares to the patch on LUCENE-7268 ? I never committed that, but the
sort used is a bad one and it was a similar speed up.

> Speed up Polygon2D construction
> -------------------------------
>                 Key: LUCENE-7309
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-7309.patch
> 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(n). If I am not mistaken, this would make Polygon2D.create
run in O(n log(n)) rather than O(n log^2(n)) today.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message