[issue28004] Optimize bytes.join(sequence)

2016-11-22 Thread STINNER Victor
STINNER Victor added the comment: Ok, I agree that it's not worth it to optimize bytes.join(list of byte strings). Code is already fast enough. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue28004] Optimize bytes.join(sequence)

2016-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tests in the article don't look reliable. For example bytes_percent() and bytes_plus() test nothing, because b"%s %s" % (b"hi", b"there") and b"hi" + b" " + b"there" are evaluated at compile time. Yes, bytes.join(sequence) is a little slower on Python 3 for

[issue28004] Optimize bytes.join(sequence)

2016-09-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue28004] Optimize bytes.join(sequence)

2016-09-07 Thread STINNER Victor
New submission from STINNER Victor: The article https://atleastfornow.net/blog/not-all-bytes/ says that bytes.join(sequence) is slower on Python 3 compared to Python 2. I compared Python 2 and Python 3 code: the main different seems to be that Python 3 uses the Py_buffer API to support more ty