[pypy-issue] [issue994] significantly slow joins

timo tracker at bugs.pypy.org
Tue Jan 10 11:09:19 CET 2012


timo <timonator at perpetuum-immobile.de> added the comment:

this is not about join being slow. in fact, this code:

start = time()
ir="0"
i=1
while (len(ir)<1000001):
    ir = ir+str(i) # without ''.join, which should be a no-op anyway
    i=i+1
print time()-start

which does exactly the same thing takes almost exactly the same time (although
my machine was under heavy, but constant load when I tried it - the pypy version
is quite old, too, though)

this is more about general string concatenation being slow on pypy.

----------
nosy: +timo
status: unread -> chatting

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue994>
________________________________________


More information about the pypy-issue mailing list