Antoine Pitrou added the comment:

Updated patch using PyUnicode_FromKindAndData for ASCII strings, to ensure that 
corrupt marshal bytecode doesn't provide corrupt unicode objects. Performance 
is within 2% of the previous patch.

(however, a quick test suggests that PyUnicode_DecodeUTF8 is quite slower)

----------
Added file: http://bugs.python.org/file32046/marshal_opts5.patch

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

Reply via email to