diff options
author | Raymond Hettinger <python@rcn.com> | 2003-11-20 22:54:33 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-11-20 22:54:33 (GMT) |
commit | 82d73dd459d911dcb12a48db12b7f8b3eb0f6b1b (patch) | |
tree | b217ea12af549fcf9c1ab085884797a22d77331f /Lib | |
parent | dff9dbdb38b38a94ac14eefc16e17437b118dfd6 (diff) | |
download | cpython-82d73dd459d911dcb12a48db12b7f8b3eb0f6b1b.zip cpython-82d73dd459d911dcb12a48db12b7f8b3eb0f6b1b.tar.gz cpython-82d73dd459d911dcb12a48db12b7f8b3eb0f6b1b.tar.bz2 |
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.
Diffstat (limited to 'Lib')
0 files changed, 0 insertions, 0 deletions