[
https://issues.apache.org/jira/browse/LUCENE-7103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15194063#comment-15194063
]
ASF subversion and git services commented on LUCENE-7103:
---------------------------------------------------------
Commit 3163b98959ae834b27a0ee8479344b61460d8851 in lucene-solr's branch
refs/heads/branch_6x from [~rcmuir]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=3163b98 ]
LUCENE-7103: further optimize LatLonPoint.newDistanceSort
> further optimize LatLonPoint.newDistanceSort
> --------------------------------------------
>
> Key: LUCENE-7103
> URL: https://issues.apache.org/jira/browse/LUCENE-7103
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Robert Muir
> Attachments: LUCENE-7103.patch
>
>
> This comparator creates bounding boxes to avoid calling haversin(), so its no
> longer a hotspot for most use cases.
> But in the worst case, it could still get called many times. This could be
> because the user had a massive top N value, or because the incoming data is
> sorted or mostly sorted by decreasing distance, etc.
> We can optimize the worst case by not invoking a full haversin, just using
> something that is rank-equivalent.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]