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