• Guido van Rossum's avatar
    Two speedup hacks. Caching the hash saves recalculation of a string's · 1e6e9a23
    Guido van Rossum yazdı
    hash value.  Interning strings (which requires hash caching) tries to
    ensure that only one string object with a given value exists, so
    equality tests are one pointer comparison.  Together, these can speed
    the interpreter up by as much as 20%.  Each costs the size of a long
    or pointer per string object.  In addition, interned strings live
    until the end of times.  If you are concerned about memory footprint,
    simply comment the #define out here (and rebuild everything!).
    1e6e9a23
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...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
BUGS Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
TODO Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...