• Raymond Hettinger's avatar
    list_resize() now has an "exact" option for bypassing the overallocation · 0e91643b
    Raymond Hettinger yazdı
    scheme in situations that likely won't benefit from it.  This further
    improves memory utilization from Py2.3 which always over-allocates
    except for PyList_New().
    
    Situations expected to benefit from over-allocation:
        list.insert(), list.pop(), list.append(), and list.extend()
    
    Situations deemed unlikely to benefit:
        list_inplace_repeat, list_ass_slice, list_ass_subscript
    
    The most gray area was for listextend_internal() which only runs
    when the argument is a list or a tuple.  This could be viewed as
    a one-time fixed length addition or it could be viewed as wrapping
    a series of appends.  I left its over-allocation turned on but
    could be convinced otherwise.
    0e91643b
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...
README Loading commit data...
aclocal.m4 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...