Message202322
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. |
|
Date |
User |
Action |
Args |
2013-11-07 10:17:18 | vstinner | set | recipients:
+ vstinner, rhettinger, gregory.p.smith, pitrou, christian.heimes, djc, ezio.melotti, meador.inge, python-dev, serhiy.storchaka |
2013-11-07 10:17:18 | vstinner | set | messageid: <1383819438.5.0.827661663911.issue16286@psf.upfronthosting.co.za> |
2013-11-07 10:17:18 | vstinner | link | issue16286 messages |
2013-11-07 10:17:18 | vstinner | create | |
|