Commits

Alex Gaynor committed dd91b79

Also rewrite list mul to use arraycopy

Comments (0)

Files changed (1)

rpython/rtyper/rlist.py

     res = RESLIST.ll_newlist(resultlen)
     j = 0
     while j < resultlen:
-        i = 0
-        while i < length:
-            p = j + i
-            res.ll_setitem_fast(p, l.ll_getitem_fast(i))
-            i += 1
+        ll_arraycopy(l, res, 0, j, length)
         j += length
     return res
 # not inlined by the JIT -- contains a loop