[issue34561] Replace list sorting merge_collapse()?

Tim Peters report at bugs.python.org
Mon Aug 30 14:30:03 EDT 2021


Tim Peters <tim at python.org> added the comment:

New runstack.py mostly adds comments about a surprise: the idea that length-adaptive ShiversSort eeks out better results than powersort appears nearly unique to the specific "0.80" cutoff used in the random-case generation code to pick between two uniform distributions. Change that cutoff, and powersort almost always does better.

So powersort remains the best known overall, although shivers4 remains competitive with it.

----------
Added file: https://bugs.python.org/file50246/runstack.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34561>
_______________________________________


More information about the Python-bugs-list mailing list