Message138070
| Author |
vinay.sajip |
| Recipients |
Arfrever, amaury.forgeotdarc, benjamin.peterson, georg.brandl, vinay.sajip |
| Date |
2011年06月10日.09:59:34 |
| SpamBayes Score |
4.7444162e-05 |
| Marked as misclassified |
No |
| Message-id |
<1307699977.6.0.974850820019.issue12291@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Attached is an improved patch:
1. It's against the 3.2 branch, rather than default.
2. It has an added multiple load test in test_marshal.py.
3. There's more error checking for an EOF condition.
4. I've removed tab chars and used /* C89 comments */.
Of course it's not as fast as the 2.x version, since that had a limitation on only being able to load from file objects, and a fast path for PyFile using stdio calls directly. Hard to compete with that!
Suggestions for improvements gratefully received :-) |
|