STINNER Victor added the comment: > Unfortunately, replacing io.BytesIO(data) with indexing does not make the > benchmark faster or more stable on my machine.
Ah, I didn't check. I expected BytesIO.read() to be slower than bytes string slicing. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26284> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com