News for hackers. Stuff that matters.
Re:Python Patterns - An Optimization Anecdote by petdog on Tuesday November 02, 2010 @09:18AM (#1860275)
Actually, map is still faster:

    In [24]: timeit ''.join(map(chr, ll))
    100000 loops, best of 3: 3.91 us per loop

    In [25]: timeit ''.join([chr(i) for i in ll])
    100000 loops, best of 3: 5.85 us per loop

    In [26]: timeit ''.join(chr(i) for i in ll)
    100000 loops, best of 3: 7.79 us per loop

There are no comments on this comment yet.