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

iaroslavski duke at openjdk.org
Mon Oct 31 22:30:30 UTC 2022


> 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)
  
  * Optimized mixed insertion sort
  * Optimized insertion sort
  * Optimized Radix sort
  * Updated microbenchmark

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/3938/files
  - new: https://git.openjdk.org/jdk/pull/3938/files/fcda2aa8..4772617d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=3938&range=16
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=3938&range=15-16

  Stats: 7181 lines in 4 files changed: 33 ins; 366 del; 6782 mod
  Patch: https://git.openjdk.org/jdk/pull/3938.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/3938/head:pull/3938

PR: https://git.openjdk.org/jdk/pull/3938


More information about the core-libs-dev mailing list