[ 
https://issues.apache.org/jira/browse/LUCENE-7309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15310492#comment-15310492
 ] 

ASF subversion and git services commented on LUCENE-7309:
---------------------------------------------------------

Commit 9c9d8ccf7eb9d4d491ffe85714cf0aabaaec0065 in lucene-solr's branch 
refs/heads/branch_6x from [~jpountz]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=9c9d8cc ]

LUCENE-7309: Speed up Polygon2D creation.


> Speed up Polygon2D construction
> -------------------------------
>
>                 Key: LUCENE-7309
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7309
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: 6.1, master (7.0)
>
>         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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to