STINNER Victor added the comment:

I added recently a new _PyUnicode_CompareWithId() function: changeset 
77bebcf5c4cf (issue #19512).

This function can be used instead of PyUnicode_CompareWithASCIIString() when 
the right parameter is a common string. It is interesting when the right string 
is probably present in a dictionary. For example, "path" is always present as 
"sys.path". So interning the string doesn't eat more memory.

_PyUnicode_CompareWithId() would be more efficient with compare_hash-3.patch. 
The function is not used yet in critical path. It is now used in type_new() for 
example.

----------

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

Reply via email to