Search found 3 matches

by Wil
Mon Apr 06, 2020 5:48 pm
Forum: Talking LiveCode
Topic: array calculations slower after combine/split
Replies: 6
Views: 4866

Re: array calculations slower after combine/split

Nevertheless something mysterious remains. I add "put myArray + 0 into myArray" after split: on mouseUp repeat with i = 1 to 500000 put random (32000) into myArray [i] end repeat put the milliSeconds into ttt put average (myArray) into mean1 put the milliSeconds - ttt into time1 combine myArray by r...
by Wil
Mon Apr 06, 2020 5:20 pm
Forum: Talking LiveCode
Topic: array calculations slower after combine/split
Replies: 6
Views: 4866

Re: array calculations slower after combine/split

Ah, of course, already thought there should be an easy explanation.
Thanks, Wil
by Wil
Mon Apr 06, 2020 4:24 pm
Forum: Talking LiveCode
Topic: array calculations slower after combine/split
Replies: 6
Views: 4866

array calculations slower after combine/split

Take a look at the script below: on mouseUp repeat with i = 1 to 500000 put random (32000) into myArray [i] end repeat put the milliSeconds into ttt put average (myArray) into mean1 put the milliSeconds - ttt into time1 combine myArray by return split myArray by return put the milliSeconds into ttt ...