[issue17615] String comparison performance regression

STINNER Victor report at bugs.python.org
Tue Apr 9 23:57:09 CEST 2013


STINNER Victor added the comment:

"Including the wmemcmp patch did not improve the times on MSC v.1600 32 bit - if anything, the performance was a little slower for the test I used:"

I tested my patch on Windows before the commit and I saw similar performances with and without wmemcmp().

I checked again and you are true: performances are *a little bit* worse using wmemcmp().

"Looking at the assembler, there is a real call to wmemcmp which adds some time and wmemcmp does not seem to be optimized compared to a simple loop."

You should be true. I reverted the patch for 16-bit wchar_t to use a dummy loop instead. 16-bit wchar_t can only be found on Windows, isn't it?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17615>
_______________________________________


More information about the Python-bugs-list mailing list