The Amazing History of Sorting in the JDK
summary
A historical and technical overview of how sorting in the JDK evolved: it covers the original single-pivot Quicksort, the introduction in JDK 7 of Vladimir Yaroslavskiy’s Dual-Pivot Quicksort (1.5–3.5× faster than the prior implementation) and the switch to Timsort for object sorting. The talk explains the optimizations and techniques applied to Dual-Pivot Quicksort over the past 14 years, how those changes improved performance, and discusses correct ways to test sorting implementations.
AI-written summary · about
chapters (23)
- 0:00JDK sorting introduction
- 1:10Two sorting algorithms
- 2:38JDK sorting history
- 5:08Dual-pivot quicksort basics
- 7:16Dual-Pivot development
- 8:44Small arrays sorting
- 11:16Pivot element choice
- 13:28Sorting 3 elements
- 14:34Adapting periodic data
- 15:38Timsort for numbers
- 17:25Memory optimization
- 18:28Floating-point sorting
- 19:34Parallel sorting in Java
- 21:18Counting and radix sort
- 22:46Hybrid sorting approaches
- 24:36Stability in object sorting
- 26:05Sorting testing importance
- 28:11Testing sorting algorithms
- 29:19Performance on data types
- 30:24JDK sorting evolution
- 31:48Contributing to JDK sorting
- 32:53Math vs programming sorting
- 34:00Summary and Q&A
