• Tim Peters's avatar
    New test %sort. This takes a sorted list, picks 1% of the list positions · d5f43594
    Tim Peters yazdı
    at random, and replaces the elements at those positions with new random
    values.  I was pleasantly surprised by how fast this goes!  It's hard to
    conceive of an algorithm that could special-case for this effectively.
    Plus it's exactly what happens if a burst of gamma rays corrupts your
    sorted database on disk <wink>.
    
     i    2**i  *sort  ...  %sort
    15   32768   0.18  ...   0.03
    16   65536   0.24  ...   0.04
    17  131072   0.53  ...   0.08
    18  262144   1.17  ...   0.16
    19  524288   2.56  ...   0.35
    20 1048576   5.54  ...   0.77
    d5f43594
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...