]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #19512: add _PyUnicode_CompareWithId() function
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 6 Nov 2013 23:46:04 +0000 (00:46 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 6 Nov 2013 23:46:04 +0000 (00:46 +0100)
commitad14ccd047022d09f486d2359a342ffc5e676e5a
tree8ddf45c544c55f71d3aa1a877bd6b6d136d972f9
parent937114f7043d6a52172a34fe04febcc5ed0eaed9
Issue #19512: add _PyUnicode_CompareWithId() function

_PyUnicode_CompareWithId() is faster than PyUnicode_CompareWithASCIIString()
when both strings are equal and interned.

Add also _PyId_builtins identifier for "builtins" common string.
Include/object.h
Include/unicodeobject.h
Objects/typeobject.c
Objects/unicodeobject.c
Python/errors.c
Python/pythonrun.c