Message188591
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
It's statistically better (a fixed 1.33 expansion instead of 1.5 average), but ASCII bytearrays will pickle less efficiently than currently.
There's something else: we had enough regressions in the latest 2.7.x release, and we shouldn't risk adding new ones in the next release. Really, let's close this issue. |
|
Date |
User |
Action |
Args |
2013-05-06 20:45:17 | pitrou | set | recipients:
+ pitrou, rhettinger, irmen, alexandre.vassalotti, benjamin.peterson, python-dev, serhiy.storchaka |
2013-05-06 20:45:17 | pitrou | set | messageid: <1367873117.77.0.173299428244.issue13503@psf.upfronthosting.co.za> |
2013-05-06 20:45:17 | pitrou | link | issue13503 messages |
2013-05-06 20:45:17 | pitrou | create | |
|