[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

Serhiy Storchaka report at bugs.python.org
Mon May 6 22:39:08 CEST 2013


Serhiy Storchaka added the comment:

How about base64?

                self.save_reduce(base64.b64decode,
                                 (str(base64.b64encode(obj), 'ascii'),), obj=obj)

>>> len(dumps(bytes([200] * 10000), 2))
13372

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13503>
_______________________________________


More information about the Python-bugs-list mailing list