mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
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:
parent
9fc5981ea2
commit
cd777eaf53
5 changed files with 30 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue