RFR: JDK-8266431: Dual-Pivot Quicksort improvements (Radix sort) [v12]
Laurent Bourgès
lbourges at openjdk.java.net
Wed May 25 10:04:02 UTC 2022
On Mon, 14 Mar 2022 19:12:29 GMT, iaroslavski <duke at openjdk.java.net> wrote:
>> Sorting:
>>
>> - adopt radix sort for sequential and parallel sorts on int/long/float/double arrays (almost random and length > 6K)
>> - fix tryMergeRuns() to better handle case when the last run is a single element
>> - minor javadoc and comment changes
>>
>> Testing:
>> - add new data inputs in tests for sorting
>> - add min/max/infinity values to float/double testing
>> - add tests for radix sort
>
> iaroslavski has updated the pull request incrementally with one additional commit since the last revision:
>
> JDK-8266431: Dual-Pivot Quicksort improvements (Radix sort)
>
> * Improved mixed insertion sort
> * Optimized insertion sort
> * Improved merging sort
> * Optimized soring tests
Well explained, vladimir.
I propose to adopt max_heap / 128 min to stay less than 1% footprint.
Then factors are 7 for ints, 8 for long, min.
For 1gb heap, it gives 8mb, so 2m ints or 1m long.
Laurent
-------------
PR: https://git.openjdk.java.net/jdk/pull/3938
More information about the core-libs-dev
mailing list