the "price" of a context switch/function call

Ralph DiMola rdimola at evergreeninfo.net
Wed Oct 8 11:27:57 EDT 2014


Mark talked about the cost of context switching at RR14. The default "by
value" parameters in a call will be "by reference" until data has changed.
Only then will a local copy be created. So... If you pass a large array only
the keys that have been changed(if any) are allocated new memory and copied.
Don't remember the initial version for this new context switching
implementation.

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net



On Oct 4, 2014, at 10:54 , Dr. Hawkins <dochawk at gmail.com> wrote:

> I'm eternally conflicted between the needed frugality of my eight bit 
> childhood and the desire for clean code . . .
> 
> And I never forget the model I wrote in smalltalk with nice "proper"
> OO message passing (the messages I was modeling, in fact), and then 
> rewrote line for line in Fortran without optimizing--a 45,000 to one 
> speedup.
> 
> Anyway, today's conflicted question is on function calls, and how much 
> it "costs" to make a function call in livecode.
> 
> If I'm going to call a routine, say, 100 times in a fraction of a 
> second, do I really save much by inlining it rather than calling it as a
function?
> 
> --
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> _______________________________________________
> 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


_______________________________________________
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