In Java 8, function Arrays.sort()
depends on the length of array;
if(length>=`QUICKSORT_THRESHOLD=286`){
take `Dual-Pivot Quicksort`;
}
else if(length<`QUICKSORT_THRESHOLD=286` && length>`INSERTION_SORT_THRESHOLD=47`){
take `One-Pivot Quicksort
}
else { take `Insertion Sort`}
How does the 286
or 47
comes from?