Le 06/10/2011 12:42, Victor Stinner a écrit :
"A".join(["Bob"]*100)): 0.92 => 2.11
I just optimized PyUnicode_Join() for such dummy benchmark. It's now 1.2x slower instead of 2.3x slower on this dummy benchmark.
With longer *ASCII* strings, Python 3.3 is now 2x (narrow 3.2) or 4x (wide 3.2) faster than Python 3.2. For example with this micro-benchmark:
./python -m timeit 'x=["x"*500]*5000; y="\n"; z=y.join' 'z(x)' Victor _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com