]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF patch #729395: Dictionary tuning
authorRaymond Hettinger <python@rcn.com>
Mon, 5 May 2003 22:22:10 +0000 (22:22 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 5 May 2003 22:22:10 +0000 (22:22 +0000)
commit3539f6b895814ad79c455f7fe633ce253c77c140
tree8270deea9c957faf0203087cf8b3c47d96e45161
parentf2e488db239054e41edbcc645364867d234b7259
SF patch #729395: Dictionary tuning

* Increase dictionary growth rate resulting in more sparse dictionaries,
  fewer lookup collisions, increased memory use, and better cache
  performance.  For dicts with over 50k entries, keep the current
  growth rate in case an application is suffering from tight memory
  constraints.

* Set the most common case (no resize) to fall-through the test.
Objects/dictobject.c