• Raymond Hettinger's avatar
    * Add short-circuit code for in-place operations with self (such as · c991db24
    Raymond Hettinger yazdı
      s|=s, s&=s, s-=s, or s^=s).  Add related tests.
    
    * Improve names for several variables and functions.
    
    * Provide alternate table access functions (next, contains, add, and discard)
      that work with an entry argument instead of just a key.  This improves
      set-vs-set operations because we already have a hash value for each key
      and can avoid unnecessary calls to PyObject_Hash().  Provides a 5% to 20%
      speed-up for quick hashing elements like strings and integers.  Provides
      much more substantial improvements for slow hashing elements like tuples
      or objects defining a custom __hash__() function.
    
    * Have difference operations resize() when 1/5 of the elements are dummies.
      Formerly, it was 1/6.  The new ratio triggers less frequently and only
      in cases that it can resize quicker and with greater benefit.  The right
      answer is probably either 1/4, 1/5, or 1/6.  Picked the middle value for
      an even trade-off between resize time and the space/time costs of dummy
      entries.
    c991db24
Adı
Son kayıt (commit)
Son güncelleme
..
.cvsignore Loading commit data...
abstract.c Loading commit data...
boolobject.c Loading commit data...
bufferobject.c Loading commit data...
cellobject.c Loading commit data...
classobject.c Loading commit data...
cobject.c Loading commit data...
complexobject.c Loading commit data...
descrobject.c Loading commit data...
dictnotes.txt Loading commit data...
dictobject.c Loading commit data...
enumobject.c Loading commit data...
fileobject.c Loading commit data...
floatobject.c Loading commit data...
frameobject.c Loading commit data...
funcobject.c Loading commit data...
genobject.c Loading commit data...
intobject.c Loading commit data...
iterobject.c Loading commit data...
listobject.c Loading commit data...
listsort.txt Loading commit data...
longobject.c Loading commit data...
methodobject.c Loading commit data...
moduleobject.c Loading commit data...
object.c Loading commit data...
obmalloc.c Loading commit data...
rangeobject.c Loading commit data...
setobject.c Loading commit data...
sliceobject.c Loading commit data...
stringobject.c Loading commit data...
structseq.c Loading commit data...
tupleobject.c Loading commit data...
typeobject.c Loading commit data...
unicodectype.c Loading commit data...
unicodeobject.c Loading commit data...
unicodetype_db.h Loading commit data...
weakrefobject.c Loading commit data...