[issue1564] The set implementation should special-case PyUnicode instead of PyString

Christian Heimes report at bugs.python.org
Sun Dec 9 02:05:57 CET 2007


Christian Heimes added the comment:

I've created a patch that adds optimization for PyUnicode while keeping
the existing optimization for PyString. The patch moves the optimization
trick for PyObject_Hash() into a macro and adds an optimized
_PyUnicode_Eq() to unicodeobject.c

----------
assignee:  -> tiran
nosy: +tiran
priority:  -> normal
Added file: http://bugs.python.org/file8896/py3k_optimize_set_unicode.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1564>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: py3k_optimize_set_unicode.patch
Type: text/x-diff
Size: 6316 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071209/709b2c32/attachment-0001.patch 


More information about the Python-bugs-list mailing list