]> granicus.if.org Git - python/commit
Issue 18719: Remove a false optimization
authorRaymond Hettinger <python@rcn.com>
Wed, 14 Aug 2013 01:34:49 +0000 (18:34 -0700)
committerRaymond Hettinger <python@rcn.com>
Wed, 14 Aug 2013 01:34:49 +0000 (18:34 -0700)
commit0e413bd28849605d935e6e146be747f71f8fd5a1
treecbc81351c3085e52f40a3bd1a70cceb7e73e2937
parentb638a38dc07dcc87c62eac5177b96824e2e8dfa2
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 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/stringobject.c