]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Three minor performance improvements:
authorRaymond Hettinger <python@rcn.com>
Thu, 20 Nov 2003 22:54:33 +0000 (22:54 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 20 Nov 2003 22:54:33 +0000 (22:54 +0000)
commit82d73dd459d911dcb12a48db12b7f8b3eb0f6b1b
treeb217ea12af549fcf9c1ab085884797a22d77331f
parentdff9dbdb38b38a94ac14eefc16e17437b118dfd6
Three minor performance improvements:

* Improve the hash function to increase the chance that distinct sets will
  have distinct xor'd hash totals.

* Use PyDict_Merge where possible (it is faster than an equivalent iter/set
  pair).

* Don't rebuild dictionaries where the input already has one.
Objects/setobject.c