Re: append speed
- Posted by "R. W. D." <filexfer3 at JUNO.COM> May 19, 2000
- 434 views
>is append() function slow? >is repeat() function much faster? atom t,t0, total sequence s, u total = 1000000 s = {} t0 = time() for i=1 to total do s=append(s,"Hand-crafted from only the finest ASCII.\n") end for t = time()-t0 printf(1,"Time: %3.2f\n",{t}) u = {} u=repeat("Microwave hint: Make hole in turtle's shell first.\n",total) t=time()-t0 printf(1,"Time: %3.2f\n",{t})