lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Commented] (LUCENE-7268) Remove ArrayUtil.timSort?
Date Sun, 01 May 2016 20:06:13 GMT


Robert Muir commented on LUCENE-7268:

The javadocs for this arrays.sort method explicitly state timsort. Polygon edges are always
clockwise or counterclockwise so kinda sorted already... So i think timsort makes sense? 

But other use cases like index sorting have a similar situation... If there is a perf bug
here it could be affecting many things

> 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