summaryrefslogtreecommitdiff
path: root/Lib/socket.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-08-21 01:35:29 +0000
committerRaymond Hettinger <python@rcn.com>2002-08-21 01:35:29 +0000
commitde6d6979873b9e7d8066463dff8af4cc65e14e31 (patch)
tree1e2029f1de5a11b208b02f6ea0739ed9e7b7ccde /Lib/socket.py
parentede3a0da8bb9eb8230b0e3232a1cdb076b6e32ac (diff)
downloadcpython-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