Re: processing time & stack overflow
Re: processing time & stack overflow
- Subject: Re: processing time & stack overflow
- From: Timothy Bates <email@hidden>
- Date: Wed, 29 Aug 2001 16:40:12 +1000
On 8/29/01 3:59 PM, "monk" <email@hidden> wrote:
>
hi victor
>
>
>> i'm not sure how to 'flatten'
>
>
> Sorry, that's my own description. What I meant was to move the handler code
>
> inline with the rest of the script (I'm not sure if that made more sense).
>
maybe i could get a quick example?
he means instead of calling a handler:
set x to add(2,2)
set y to add(x,2)
on add(a,b)
return a+b
end
You would inline the code - write the handler directly every time you call
it:
set x to 2+2
set y to x+2
this saves microseconds of setup time during execution
tim
PS: I find my original randomise list function to be faster than anything
else (that works) which has been discussed so far).