Which is faster...
Bob Sneidar
bobsneidar at iotecdigital.com
Thu Dec 14 16:45:53 EST 2023
I think the confusion comes from thinking so much of a stack as an object that has substance, when really all the properties are places in memory just like a memory variable is. I asked this some years back and the answer I got was that there is no appreciable difference.
One could always devise a test though…
Bob S
On Dec 14, 2023, at 1:22 PM, Paul Dupuis via use-livecode <use-livecode at lists.runrev.com> wrote:
Which is faster or more efficient (from an engine performance perspective)?
To retrieve an array from a property?
As in:
command someHandler -- in an objects script
get the cMyArray from me -- cMyArray is some multi-dimensional array
...
end someHandler
OR
To retrieve an array from a script local variable?
As in:
local sMyArray -- script local variable in some objects script
command someHandler -- in an objects script
get sMyArray
...
end someHandler
Anyone know?
More information about the use-livecode
mailing list