diff options
author | Raymond Hettinger <python@rcn.com> | 2002-08-21 01:35:29 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-08-21 01:35:29 +0000 |
commit | de6d6979873b9e7d8066463dff8af4cc65e14e31 (patch) | |
tree | 1e2029f1de5a11b208b02f6ea0739ed9e7b7ccde /Lib/socket.py | |
parent | ede3a0da8bb9eb8230b0e3232a1cdb076b6e32ac (diff) | |
download | cpython-git-de6d6979873b9e7d8066463dff8af4cc65e14e31.tar.gz |
Optimize try/except ordering in sets.py.
Gains a 5:1 speed-up for membership testing by
handling the most common case first (the case
where the element is hashable).
Closes SF Patch 597444.
Diffstat (limited to 'Lib/socket.py')
0 files changed, 0 insertions, 0 deletions