This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients christian.heimes, djc, ezio.melotti, gregory.p.smith, meador.inge, pitrou, python-dev, rhettinger, serhiy.storchaka, vstinner
Date 2013-11-07.10:17:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383819438.5.0.827661663911.issue16286@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-11-07 10:17:18vstinnersetrecipients: + vstinner, rhettinger, gregory.p.smith, pitrou, christian.heimes, djc, ezio.melotti, meador.inge, python-dev, serhiy.storchaka
2013-11-07 10:17:18vstinnersetmessageid: <1383819438.5.0.827661663911.issue16286@psf.upfronthosting.co.za>
2013-11-07 10:17:18vstinnerlinkissue16286 messages
2013-11-07 10:17:18vstinnercreate