STINNER Victor added the comment:

I don't understand why do we have specialized functions to compare strings. 
Can't we reuse PyUnicode_Compare(a, b) or PyUnicode_RichCompare( a, b, Py_EQ)? 
Is unicode_eq() used to inline the code?

By the way, unicode_compare_eq() (subfunction of these functions) and 
unicode_eq() have a different implementation. unicode_eq() checks the first 
byte before calling memcmp(). We should only have one implementation, the 
fastest if possible :-)

See also issue #16286.

----------

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

Reply via email to