[issue19219] speed up marshal.loads()
Antoine Pitrou
report at bugs.python.org
Fri Oct 11 15:23:51 CEST 2013
Antoine Pitrou added the comment:
> Sorry for sarcasm.
Well, indeed, the sarcasm is undeserved here, if the interpreter cannot
crash because of the change.
> > It's exactly what you suggest: reuse PyUnicode_AsUTF8String().
>
> Actually _PyUnicode_UTF8(). PyUnicode_AsUTF8String() creates UTF8
> cache if it is not exists and this can be not desired. We could use
> this optimization in many other places, in particular in
> PyUnicode_AsUTF8String() itself.
I don't understand how _PyUnicode_UTF8() can be used for *unmarshalling*.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19219>
_______________________________________
More information about the Python-bugs-list
mailing list