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 vstinner
Recipients pitrou, serhiy.storchaka, vstinner
Date 2013-04-03.22:10:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1365027033.17.0.0119638159655.issue17628@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2013-04-03 22:10:33vstinnersetrecipients: + vstinner, pitrou, serhiy.storchaka
2013-04-03 22:10:33vstinnersetmessageid: <1365027033.17.0.0119638159655.issue17628@psf.upfronthosting.co.za>
2013-04-03 22:10:33vstinnerlinkissue17628 messages
2013-04-03 22:10:33vstinnercreate