RFR: JDK-8266431: Dual-Pivot Quicksort improvements (Radix sort) [v9]
iaroslavski
duke at openjdk.java.net
Thu Nov 18 14:32:51 UTC 2021
On Mon, 15 Nov 2021 16:20:07 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)
>
> Updated comments for partitioning
Hi all,
Not only Dual-Pivot Quicksort has been optimized, but I also improved test classes.
I measured coverage of these tests. It was shown that all methods, all branches are invoked.
So, we have full test coverage.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3938
More information about the core-libs-dev
mailing list