]> granicus.if.org Git - python/commit
Issue #17615: On Windows (VS2010), Performances of wmemcmp() to compare Unicode
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 9 Apr 2013 21:53:26 +0000 (23:53 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 9 Apr 2013 21:53:26 +0000 (23:53 +0200)
commit247109e74dcdde19c491c966496655cb87834981
treed1a3f603a2743dfb853b9bf2546d53e65c0b44fc
parent2a4df127c731330be8455ed8b0640987ec9dae6b
Issue #17615: On Windows (VS2010), Performances of wmemcmp() to compare Unicode
strings are not convincing. For UCS2 (16-bit wchar_t type), use a dummy loop
instead of wmemcmp(). The dummy loop is as fast, or a little bit faster.

wchar_t is only 16-bit long on Windows. wmemcmp() is still used for 32-bit
wchar_t.
Objects/unicodeobject.c
PC/pyconfig.h