"Frank Millman" writes:
> I have often read that the quickest way to concatenate a number of strings
> is to place them in a list and 'join' them -
>
> C:\Users\User>python -m timeit -s "x='a'*500; y='b'*500; z='c'*500"
> ''.join([x, y, z])
...
>
> I seem to have found a quicker method,
"Dennis Lee Bieber" wrote in message
news:cnk0sdl5a7p17framc5er811p1230mp...@4ax.com...
On Fri, 12 Oct 2018 07:55:58 +0200, "Frank Millman"
declaimed the following:
>I have often read that the quickest way to concatenate a number of
>strings
>is to place them in a list and 'join' them -
>
On 12/10/2018 08:36, Thomas Jollans wrote:
> On 12/10/2018 07:55, Frank Millman wrote:
> Hi all
>
> > I have often read that the quickest way to concatenate a number of
> > strings is to place them in a list and 'join' them -
> >
> >
> > C:\Users\User>python -m timeit -s "x='a'*500; y='b'*
On 12/10/2018 07:55, Frank Millman wrote:
Hi all
I have often read that the quickest way to concatenate a number of
strings is to place them in a list and 'join' them -
C:\Users\User>python -m timeit -s "x='a'*500; y='b'*500; z='c'*500"
''.join([x, y, z])
50 loops, best of 5: 30
Hi all
I have often read that the quickest way to concatenate a number of strings
is to place them in a list and 'join' them -
C:\Users\User>python -m timeit -s "x='a'*500; y='b'*500; z='c'*500"
''.join([x, y, z])
50 loops, best of 5: 307 nsec per loop
I seem to have found a quick