Inefficient code - Solutions

Jerry J jhj at jhj.com
Wed Jul 1 16:18:27 EDT 2009


WOW! So you do! I didn't know about that one - I learned something  
good today.

I updated the stack, its now at:
http://jhj.com/Compare-Jerry3.rev.zip

Thanks a bunch,
Jerry

On Jul 1, 2009, at 8:10 AM, BNig wrote:

> Jerry,
> you get quite a speed increase by changing the first line of your  
> handler to
>
> private command pixDive pStart, pEnd -- WARNING: RECURSION
> instead of
> on pixDive pStart, pEnd -- WARNING: RECURSION
>
> Revolution introduced the private command and private function in  
> version
> 2.8.1
> If you are on a version => 2.8.1 give it a try.
> The private command, according to the documentation, stays local,  
> reducing
> overhead of the message path.
>
> regards
> Bernd
>
>
> Jerry J wrote:
>>
>> Here's a different approach - a recursive algorithm that is very
>> compact...- its very heavy on handler calls ....
> -- 
> View this message in context: http://www.nabble.com/Inefficient-code-tp24226458p24291519.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list