Chained behavior performance seems fine

Brian Milby brian at milby7.com
Wed Jan 24 15:59:11 EST 2018


Wow, I hope you scripted setting up that test...
On Wed, Jan 24, 2018 at 1:35 PM Geoff Canyon via use-livecode <
use-livecode at lists.runrev.com> wrote:

> I was curious about the performance of chained behaviors, so I created a
> stack to time them. I compared a button with a behavior to a button with a
> chain of 100 behaviors, with the code in the very last button.
>
> The performance diving through 99 extra behavior links was pretty decent --
> I was calling this simple function:
>
> function test100
>     return 100
> end test100
>
> Calling it 1,000,000 times through one behavior took about 1.0 seconds,
> calling it the same number of times through 100 behaviors took about 2.4
> seconds.
>
> Given that 100 behaviors is an absurd depth to go to, that seems perfectly
> reasonable.
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list