Issue #17615: Comparing two Unicode strings now uses wmemcmp() when possible

wmemcmp() is twice faster than a dummy loop (342 usec vs 744 usec) on Fedora
18/x86_64, GCC 4.7.2.
This commit is contained in:
Victor Stinner 2013-04-08 22:43:44 +02:00
parent 9fc5981ea2
commit cd777eaf53
5 changed files with 30 additions and 5 deletions

View file

@ -645,6 +645,9 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
#define HAVE_WCSXFRM 1
#endif
/* Define to 1 if you have the `wmemcmp' function. */
#define HAVE_WMEMCMP 1
/* Define if the zlib library has inflateCopy */
#define HAVE_ZLIB_COPY 1