RFR: JDK-8266431: Dual-Pivot Quicksort improvements (Radix sort) [v6]

Laurent Bourgès lbourges at openjdk.java.net
Fri Oct 8 07:20:11 UTC 2021


On Wed, 6 Oct 2021 21:21:29 GMT, iaroslavski <github.com+43264149+iaroslavski 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)
>   
>   Added more comments

It is possible to use an upper limit on the array size to disable radix sort and reduce memory footprint and gc overhead...

-------------

PR: https://git.openjdk.java.net/jdk/pull/3938


More information about the core-libs-dev mailing list