]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Store the mask instead of the size in dictobjects. The mask is more
authorTim Peters <tim.peters@gmail.com>
Mon, 4 Jun 2001 21:00:21 +0000 (21:00 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 4 Jun 2001 21:00:21 +0000 (21:00 +0000)
commitafb6ae84526e9e6f70fef55b3743c2cd91327391
tree2459ed703fddf4d70095cb63ca8669ca166c0ce6
parentb9d973dac5f846123922492ea333c196c105b089
Store the mask instead of the size in dictobjects.  The mask is more
frequently used, and in particular this allows to drop the last
remaining obvious time-waster in the crucial lookdict() and
lookdict_string() functions.  Other changes consist mostly of changing
"i < ma_size" to "i <= ma_mask" everywhere.
Objects/dictobject.c