How to store a stack in a custom property

Jim Bufalini jim at visitrieve.com
Mon Apr 27 20:05:45 EDT 2009


Hi Jacque,

> Jim Bufalini wrote:
> > By the
> > way, did anyone mention that custom properties are faster than
> globals in
> > memory?  ;-)
> 
> Don't think so, unless something's changed since I asked Scott Raney
> about it. Variables will always be faster than retrieving a property,
> though the engine is so fast the differences are probably
> insignificant.

I just knew I shouldn't have thrown this in. So many other things I could
have said. ;-) LOL. 

Eric was a big fan of custom properties and is the one who did the
comparison tests and was the one who emphatically said custom properties
were faster and insisted I use custom properties instead of globals whenever
I could.

I never questioned it. Would you question Eric on something he tested and
was insistent on? ;-) And, actually it kind of made sense to me in that vars
exist "outside" the stack memory space and, for example, when they are
passed, there is a "copy" made unless you use the by reference @pParam form,
where custom properties exist "inside" the stack memory space. But this is
"loose" thinking and I may be all wet on this. To be fair, we did use both.

But alas, he's not here to provide his tests and I have nothing to stand on
except his unwavering say-so and insistence. So, I stand to be corrected, if
someone knows for a fact that it is wrong.

Aloha from Hawaii,

Jim Bufalini




More information about the use-livecode mailing list