]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue 18719: Remove a false optimization
authorRaymond Hettinger <python@rcn.com>
Wed, 14 Aug 2013 01:16:34 +0000 (18:16 -0700)
committerRaymond Hettinger <python@rcn.com>
Wed, 14 Aug 2013 01:16:34 +0000 (18:16 -0700)
commitb1b915c796a9054cce867ef47071bcf9f79b985f
treef0632ce96b998ca0f68626f2d494040d8920d93a
parent0a01ac4300ff3831d63fc065eb9bac7767bfd8dc
Issue 18719: Remove a false optimization

Remove an unused early-out test from the critical path for
dict and set lookups.

When the strings already have matching lengths, kinds, and hashes,
there is no additional information gained by checking the first
characters (the probability of a mismatch is already known to
be less than 1 in 2**64).
Objects/stringlib/eq.h