Message188338
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 | |
| Date | User | Action | Args | | 2013-05-04 00:07:17 | alexandre.vassalotti | set | recipients: + alexandre.vassalotti, rhettinger, pitrou, Arfrever, asvetlov, neologix, serhiy.storchaka | | 2013-05-04 00:07:17 | alexandre.vassalotti | set | messageid: <1367626037.15.0.303797310624.issue17810@psf.upfronthosting.co.za> | | 2013-05-04 00:07:17 | alexandre.vassalotti | link | issue17810 messages | | 2013-05-04 00:07:17 | alexandre.vassalotti | create | | |