STINNER Victor added the comment:

Here is a patch specializing unicode_compare() for each combinaison of (kind1, 
kind2), to avoid the expensive PyUnicode_READ() macro (2 if). On Linux using 
GCC -O3 (GCC 4.7), there is no difference since GCC already specialize the 
loops. It may help other compilers.

----------
keywords: +patch
resolution: fixed -> 
Added file: http://bugs.python.org/file29722/specialize_compare.patch

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

Reply via email to