Message199465
"As for output, we could use cached UTF-8 representation of string (always exists for ASCII only strings) before calling PyUnicode_AsUTF8String()."
PyUnicode_AsEncodedString(v, "utf8", "surrogatepass") is expensive. I proposed an optimization for the pickle module, Antoine finished the work: see issue #15596. It's exactly what you suggest: reuse PyUnicode_AsUTF8String(). |
|
| Date |
User |
Action |
Args |
| 2013-10-11 12:10:57 | vstinner | set | recipients:
+ vstinner, barry, pitrou, kristjan.jonsson, christian.heimes, serhiy.storchaka |
| 2013-10-11 12:10:57 | vstinner | set | messageid: <[email protected]> |
| 2013-10-11 12:10:57 | vstinner | link | issue19219 messages |
| 2013-10-11 12:10:57 | vstinner | create | |
|