Message185970
benchmark2: Results on a slower computer. Comparing equal strings is much faster with the patch. Example:
equal, 'A', 1000000 | 945 us (*) | 1.25 ms (+32%)
I don't understand why the patch makes the comparaison much slower, since most time is supposed to be spend in memcmp()?
Is it because I starts at the second character to compare strings, instead of the first character? Memory alignment issue? |
|
Date |
User |
Action |
Args |
2013-04-03 22:10:33 | vstinner | set | recipients:
+ vstinner, pitrou, serhiy.storchaka |
2013-04-03 22:10:33 | vstinner | set | messageid: <1365027033.17.0.0119638159655.issue17628@psf.upfronthosting.co.za> |
2013-04-03 22:10:33 | vstinner | link | issue17628 messages |
2013-04-03 22:10:33 | vstinner | create | |
|