On 12:38 am, alex.gay...@gmail.com wrote:
repeat itself is not slow, it's just that when it's used it iterates over it, in RPython (meaning it's not jit'd) which results in a dictionary lookup
for the next() method at every iteration, which is slowish, list hits a
special case so it doesn' thave that overhead.

Is it time to reimplement repeat in Python then?

Jean-Paul
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to