Yet another DPQ update

Joshua Bloch jjb at google.com
Mon Dec 7 20:32:45 UTC 2009


Folks,

Hi.  Here's another update for Dual Partition Quicksort:
http://cr.openjdk.java.net/~alanb/6905046/webrev/

Summary of changes:

 * Improved comments throughout

 * Minor code changes for clarity (e.g., swapped order of some comparisons)

 * Further optimized partitioning performance

 * Restored sentinel optimization in "pivots are equal" case that was
   accidentally deleted. Added comment so it won't be deleted again.

This version (12i) is about 3% faster than version 12a on random data,
10-30% faster on duplicate-rich data, and 1-3% slower on pre-sorted
(ascending/descending) data:
http://spreadsheets.google.com/pub?key=tHOi6AmWiKOyaX4qqg5VrAg&single=true&gid=0&output=html

     The DPQ team (Vladimir, Jon, and Josh)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20091207/f6c7a0cc/attachment.html>


More information about the core-libs-dev mailing list