STINNER Victor added the comment:

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?

----------
Added file: http://bugs.python.org/file29672/benchmark2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17628>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to