"Guido van Rossum" <[EMAIL PROTECTED]> wrote: > > On 5/4/06, Josiah Carlson <[EMAIL PROTECTED]> wrote: > > > > "Guido van Rossum" <[EMAIL PROTECTED]> wrote: > > > Can you please post the benchmarking code? > > > > No problem. > > OK, so I have the advantage of a time machine... Or at least the p3yk > (sic) branch. I created a perhaps more reasonable benchmark; you can > see it in SVN here:
I like your benchmark better, and it's good to find out that bytes.join is fast (also good to know that bytes/str.join have been shown to be faster than += in more realistic tests). There is, of course, the other rub that if one mixes += operations with other operations (like let's say reading that actual data from a socket or from a generated buffer, etc.), there is the potential for memory fragmentation. Probably not a big deal for everyone, but I've been bit by it. - Josiah _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com