This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients alexandre.vassalotti, benjamin.peterson, irmen, pitrou, python-dev, rhettinger, serhiy.storchaka
Date 2013-05-06.20:45:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367873117.77.0.173299428244.issue13503@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-05-06 20:45:17pitrousetrecipients: + pitrou, rhettinger, irmen, alexandre.vassalotti, benjamin.peterson, python-dev, serhiy.storchaka
2013-05-06 20:45:17pitrousetmessageid: <1367873117.77.0.173299428244.issue13503@psf.upfronthosting.co.za>
2013-05-06 20:45:17pitroulinkissue13503 messages
2013-05-06 20:45:17pitroucreate