Search found 6 matches

by zink137
Sun Sep 11, 2022 11:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Need for Speed
Replies: 22
Views: 10881

Re: Need for Speed

richmond62,

How did you do it (making a link)?

Nelson
by zink137
Sun Sep 11, 2022 10:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Need for Speed
Replies: 22
Views: 10881

Re: Need for Speed

SparkOut, The array thing is over my head and this project isn't important enough to learn it (arrays) at the present. The second code is 10 times faster than the first--yes, hours to minutes. I'm assuming the counting thing is always from the beginning and most of the duplicates are at the beginnin...
by zink137
Sun Sep 11, 2022 9:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Need for Speed
Replies: 22
Views: 10881

Re: Need for Speed

Repeat with zz=the number of lines of Big down to 1 --delete duplicates if line zz of Big=line zz-1 of Big then delete line zz-1 of Big end Repeat put empty into zz repeat forever --delete duplicates add 1 to zz if zz=the number of lines of Big then exit repeat repeat forever if line zz of Big=line...
by zink137
Sat Sep 10, 2022 11:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Need for Speed
Replies: 22
Views: 10881

Re: Need for Speed

My iMac usually generates the list in under 10 seconds. A little over 5 million integers, it's kind of astonishing.

But that's all beside the point. How to eliminate duplicates in a similar timely fashion?
by zink137
Sat Sep 10, 2022 11:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Need for Speed
Replies: 22
Views: 10881

Re: Need for Speed

on mouseUp put the milliseconds into timeOn put empty into fld 1 repeat with xx=2 to 50000 put xx into zz repeat until zz=1 if zz mod 2 =1 then put ((zz*3)+1) into zz put zz &return after BigTemp else put zz/2 into zz put zz &return after BigTemp end if end repeat end repeat put BigTemp into fld 1 p...
by zink137
Sat Sep 10, 2022 10:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Need for Speed
Replies: 22
Views: 10881

Need for Speed

I’m generating large sets of integers (millions) which takes just a few seconds and then sorting them numerically (another couple seconds) and then deleting all the multiples which takes hours. Repeat with zz=the number of lines of BigTemp down to 1 --delete duplicates if line zz of BigTemp=line zz-...