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 rthr
Recipients martin.panter, rthr
Date 2017-07-25.12:21:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500985318.61.0.174020332308.issue31025@psf.upfronthosting.co.za>
In-reply-to
Content
it's a tiny bit slow, but that works, thank you. I guess we can close this



% python -m timeit -s "import io; b = io.BytesIO(b'0' * 2 ** 30)" "p = b.tell(); b.seek(0, 2); b.tell(); b.seek(p)"
1000000 loops, best of 3: 0.615 usec per loop

% python -m timeit -s "import io; b = io.BytesIO(b'0' * 2 ** 30)" "len(b.getvalue())"
10000000 loops, best of 3: 0.174 usec per loop
History
Date User Action Args
2017-07-25 12:21:58rthrsetrecipients: + rthr, martin.panter
2017-07-25 12:21:58rthrsetmessageid: <1500985318.61.0.174020332308.issue31025@psf.upfronthosting.co.za>
2017-07-25 12:21:58rthrlinkissue31025 messages
2017-07-25 12:21:58rthrcreate