Message195419
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. |
|
Date |
User |
Action |
Args |
2013-08-16 21:08:42 | rhettinger | set | recipients:
+ rhettinger, lemburg, pitrou, vstinner, christian.heimes, eric.snow, serhiy.storchaka |
2013-08-16 21:08:42 | rhettinger | set | messageid: <1376687322.23.0.12295164921.issue17628@psf.upfronthosting.co.za> |
2013-08-16 21:08:42 | rhettinger | link | issue17628 messages |
2013-08-16 21:08:42 | rhettinger | create | |
|