• Raymond Hettinger's avatar
    Give meaning to the oparg for BUILD_MAP: estimated size of the dictionary. · fd7ed407
    Raymond Hettinger yazdı
    Allows dictionaries to be pre-sized (upto 255 elements) saving time lost
    to re-sizes with their attendant mallocs and re-insertions.
    
    Has zero effect on small dictionaries (5 elements or fewer), a slight
    benefit for dicts upto 22 elements (because they had to resize once
    anyway), and more benefit for dicts upto 255 elements (saving multiple
    resizes during the build-up and reducing the number of collisions on
    the first insertions).  Beyond 255 elements, there is no addional benefit.
    fd7ed407
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...
PCbuild8 Loading commit data...
PCbuild9 Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in 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...