RFR: JDK-8266431: Dual-Pivot Quicksort improvements (Radix sort) [v18]
Laurent Bourgès
lbourges at openjdk.org
Sun Nov 20 15:58:36 UTC 2022
On Wed, 9 Nov 2022 21:06:50 GMT, iaroslavski <duke at openjdk.org> 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)
>
> * Fixed microbenchmarking tests
Here are latest results on my ubuntu 20.04 build (openjdk20), i7-6820hk, fixed freq at 2.7ghz:
https://jmh.morethan.io/?sources=https://raw.githubusercontent.com/bourgesl/bourgesl.github.io/master/jdk-jmh-arraysort/221120/micro_java_util_ArraysSort_jdk20-ref/jmh-result.json,https://raw.githubusercontent.com/bourgesl/bourgesl.github.io/master/jdk-jmh-arraysort/221120/micro_java_util_ArraysSort_dpqs2211/jmh-result.json
It wins!
-------------
PR: https://git.openjdk.org/jdk/pull/3938
More information about the core-libs-dev
mailing list