News for hackers. Stuff that matters.
Re:Efficient String Concatenation in Python by dbarlett on Saturday September 07, 2013 @05:34PM (#6346709)
I just ran those with Python 2.7 (ASCII and Unicode) and Python 3.2 (Unicode). "-".join(map(str, range(100))) was always the fastest, with ASCII (2.7) < Unicode (3.2) < Unicode (2.7). Makes sense, but worth keeping in mind when porting code from Python 2 to 3.

Full results: https://gist.github.com/dbarlett/6479378

There are no comments on this comment yet.