Reverse a list

Geoff Canyon gcanyon at gmail.com
Mon Feb 9 16:08:07 EST 2015


On Mon, Feb 9, 2015 at 3:46 AM, Kay C Lan <lan.kc.macmail at gmail.com> wrote:

> 6.6.5
>
> There are 1880 lines in tstart
> There are now 9400 lines in tstart
> revers(ta) took 350 ms
> qrevers(ta) took 5 ms
> Output OK
> krevers(ta) took 328 ms
> Output OK
>
> 7.0.2 rc2
>
> There are 1880 lines in tstart
> There are now 9396 lines in tstart
> revers(ta) took 354 ms
> qrevers(ta) took 542845 ms
> Output OK
> krevers(ta) took 2051 ms
> Output OK
>
>
You're seeing a 100,000x slowdown in qrevers from 6.6.5 to 7?

I generated a 10K line sample to reverse, and saw only(!) a 70x slowdown
going from 6.7 to 7.0.2

I changed everything from char to byte, but I just checked with the
original version using char and saw no difference.

gc



More information about the use-livecode mailing list