lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <>
Subject [jira] [Commented] (LUCENE-7268) Remove ArrayUtil.timSort?
Date Sun, 01 May 2016 19:56:12 GMT


Dawid Weiss commented on LUCENE-7268:

Other than consistency of having our own implementation I don't think this matters? I recall
issues with TimSort that affected various jdk versions, so performance may depend on jvm version
(and data).. Also, is the algorithm explicitly fixed to TimSort in Arrays.sort? I don't think
so since it used to be merge sort before they switched it to timSort.

> Remove ArrayUtil.timSort?
> -------------------------
>                 Key: LUCENE-7268
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Robert Muir
>         Attachments: LUCENE-7268_mods.patch
> Is there some workload where our timSort is better than the JDK one? Should we just remove
ours if its slower?
> Not that its a great test, but i switched Polygon2D edge sorting (just the one where
it says "sort the edges then build a balanced tree from them") from Arrays.sort to ArrayUtil.timSort
and was surprised when performance was much slower for an enormous polygon (

This message was sent by Atlassian JIRA

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

View raw message