Arrays in Rev (long)

J. Landman Gay jacque at hyperactivesw.com
Mon Jul 12 22:10:07 EDT 2004


On 7/12/04 12:25 PM, Troy Rollins wrote:

> So, it further occurred to me that leaving the inherent stack mechanisms 
> out of my list of data storage tools for session data might be limiting 
> my best choice (at times.)

It depends on what you are doing. Note that while stack-based storage is 
expandable and convenient, access is slow. I don't think I'd create 
temporary stacks for data storage except in those cases where I wanted 
to save them to disk as preference files, or similar.

Globals and script locals have the fastest access. Custom props are 
pretty fast, but still slower than variables. Stack-based data stored in 
a separate stack is slower yet, and if the stack has to be read from 
disk, it is very slow.

If speed doesn't matter, then base your storage methods on convenience. 
If speed does matter, use variables.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com


More information about the use-livecode mailing list