• Raymond Hettinger's avatar
    SF Patch #661440: Refactor and streamline PyCFunction_Call · bf43f8af
    Raymond Hettinger yazdı
    Refactor code in PyCFunction_Call giving a modest (tiny) speed boost,
    a slight improvement in semantics (now detects invalid flag combinations),
    and (arguably) improved clarity (making it blindingly clear which flag
    combinations are allowed).  All this comes at a cost of a few lines of
    code duplication.
    
    * Folded test for METH_KEYWORDS into the switch/case.
    * Deferred testing for an empty dictionary until when and where needed.
    * Make a similar deferral for filling the "size" variable.
    * Inverted the dictionary test so that the common case falls though
      instead of making a jump.
    bf43f8af
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...
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...