Managing RAM with Livecode
Posted: Thu Jan 29, 2015 12:05 am
Couldn't find anything on this in the forums so I figured I would ask. (May just not be searching well)
How does one make their app most efficient with their use of RAM?
I know that for especially mobile devices that it is important to conserve RAM as it takes up energy which drains peoples batteries. So the goal is to make the application as "lean" as possible. So I was wondering if someone else knows some ways of reducing excess energy expenditure.
Some thoughts:
If variables are created and destroyed as they move through handlers throughout the scripts, is storing data into global variables going to take up more RAM than local (keeps it longer)
If variables are so readily used, is storing data in a custom property a different way of storing data such as in-app storage?
If I needed to hold data for later, would putting it into a txt file or a binfile be an efficient way to clear the data out of RAM temporarily?
Is there anything that can make a difference to the amount of RAM used?
How does one make their app most efficient with their use of RAM?
I know that for especially mobile devices that it is important to conserve RAM as it takes up energy which drains peoples batteries. So the goal is to make the application as "lean" as possible. So I was wondering if someone else knows some ways of reducing excess energy expenditure.
Some thoughts:
If variables are created and destroyed as they move through handlers throughout the scripts, is storing data into global variables going to take up more RAM than local (keeps it longer)
If variables are so readily used, is storing data in a custom property a different way of storing data such as in-app storage?
If I needed to hold data for later, would putting it into a txt file or a binfile be an efficient way to clear the data out of RAM temporarily?
Is there anything that can make a difference to the amount of RAM used?