diff options
author | Raymond Hettinger <python@rcn.com> | 2002-08-21 01:35:29 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-08-21 01:35:29 (GMT) |
commit | de6d6979873b9e7d8066463dff8af4cc65e14e31 (patch) | |
tree | 1e2029f1de5a11b208b02f6ea0739ed9e7b7ccde /Python/compile.c | |
parent | ede3a0da8bb9eb8230b0e3232a1cdb076b6e32ac (diff) | |
download | cpython-de6d6979873b9e7d8066463dff8af4cc65e14e31.zip cpython-de6d6979873b9e7d8066463dff8af4cc65e14e31.tar.gz cpython-de6d6979873b9e7d8066463dff8af4cc65e14e31.tar.bz2 |
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 'Python/compile.c')
0 files changed, 0 insertions, 0 deletions