• Raymond Hettinger's avatar
    Issue #21424: Optimize heaqp.nlargest() to make fewer tuple comparisons. · 277842ef
    Raymond Hettinger yazdı
    Consolidates the logic for nlargest() into a single function so that
    decoration tuples (elem,order) or (key, order, elem) only need to
    be formed when a new element is added to the heap.  Formerly, a tuple
    was created for every element regardless of whether it was added to
    the heap.
    
    The change reduces the number of tuples created, the number of ordering
    integers created, and total number of tuple comparisons.
    277842ef
Adı
Son kayıt (commit)
Son güncelleme
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...
Tools Loading commit data...
.bzrignore Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
.hgtouch Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...