Message188338
| 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 |
|