This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients christian.heimes, eric.snow, lemburg, pitrou, rhettinger, serhiy.storchaka, vstinner
Date 2013-08-16.21:08:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1376687322.23.0.12295164921.issue17628@psf.upfronthosting.co.za>
In-reply-to
Content
FWIW, there are two distinct issues.  As everyone has noted here, accessing memory in non-sequential order is a performance killer.

The other issue (the one I was working on) is that early-out first-char or last-char tests are a waste (almost never executed) if we already know that the string hashes match (i.e. in the string equality calls from the  dict and set lookup routines).  If the hashes match, the odds are 2**64 to 1 if favor of the strings being equal.
History
Date User Action Args
2013-08-16 21:08:42rhettingersetrecipients: + rhettinger, lemburg, pitrou, vstinner, christian.heimes, eric.snow, serhiy.storchaka
2013-08-16 21:08:42rhettingersetmessageid: <1376687322.23.0.12295164921.issue17628@psf.upfronthosting.co.za>
2013-08-16 21:08:42rhettingerlinkissue17628 messages
2013-08-16 21:08:42rhettingercreate