]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #16286: optimize PyUnicode_RichCompare() for identical strings (same
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 4 Nov 2013 10:23:05 +0000 (11:23 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 4 Nov 2013 10:23:05 +0000 (11:23 +0100)
commitfd9e44db371f6e097b8756a004ac3783f7fb2df0
treee31413b55c0e03f18c43c360cfccd44b93c74468
parentc8bc5377ac59c6e6af5c0e925fa0af7d9df7ebc0
Issue #16286: optimize PyUnicode_RichCompare() for identical strings (same
pointer) for any operator, not only Py_EQ and Py_NE.

Code of bytes_richcompare() and PyUnicode_RichCompare() is now closer.
Objects/bytesobject.c
Objects/unicodeobject.c