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 alexandre.vassalotti
Recipients Arfrever, alexandre.vassalotti, asvetlov, neologix, pitrou, rhettinger, serhiy.storchaka
Date 2013-05-04.00:07:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367626037.15.0.303797310624.issue17810@psf.upfronthosting.co.za>
In-reply-to
Content
Antoine, can you share the code for your benchmarks which show performance improvements when framing is enabled? I am seeing the same 10-15% slowdown even when pickling stuff to pure Python objects:

### Without the patch
./python -m timeit -r 50 -s "import pickle, _pyio; f = _pyio.BytesIO(); x = list(range(1000))" "pickle.dump(x, f, protocol=4)"
10000 loops, best of 50: 28.5 usec per loop

### With the patch
./python -m timeit -r 50 -s "import pickle, _pyio; f = _pyio.BytesIO(); x = list(range(1000))" "pickle.dump(x, f, protocol=4)"
10000 loops, best of 50: 32.9 usec per loop
History
Date User Action Args
2013-05-04 00:07:17alexandre.vassalottisetrecipients: + alexandre.vassalotti, rhettinger, pitrou, Arfrever, asvetlov, neologix, serhiy.storchaka
2013-05-04 00:07:17alexandre.vassalottisetmessageid: <1367626037.15.0.303797310624.issue17810@psf.upfronthosting.co.za>
2013-05-04 00:07:17alexandre.vassalottilinkissue17810 messages
2013-05-04 00:07:17alexandre.vassalotticreate