]> granicus.if.org Git - python/commit
Make the unicode equality test an external function rather than in-lining it.
authorRaymond Hettinger <python@rcn.com>
Sat, 4 Jul 2015 23:04:44 +0000 (16:04 -0700)
committerRaymond Hettinger <python@rcn.com>
Sat, 4 Jul 2015 23:04:44 +0000 (16:04 -0700)
commitac2ef65c320606e30132ca58bbd6b5d6861ce644
tree60314adce386a879a44b69e752d29568d63d894d
parent7fe0507d07f819c76a79421ae54d547a54e6f35d
Make the unicode equality test an external function rather than in-lining it.

The real benefit of the unicode specialized function comes from
bypassing the overhead of PyObject_RichCompareBool() and not
from being in-lined (especially since there was almost no shared
data between the caller and callee).  Also, the in-lining was
having a negative effect on code generation for the callee.
Include/unicodeobject.h
Objects/setobject.c
Objects/unicodeobject.c