Local variables

I have a concern about local variables in functions,

I am trying my make my app efficient as much as I could, 

If I make a lot of local variables in a function, after the function is executed to they get null automatically or should I clean them out manually ?

and the same with functions should I use local functions if am not gonna use them outside the file, or it won’t matter ?

What advice can you give me to make an app efficient as possible.

Local variables in functions only exist in the scope of the function, so you don’t need to nil them. 

You should use local functions and variables in almost all circumstances.  See:

https://docs.coronalabs.com/tutorial/basics/globals/index.html

Rob

Local variables in functions only exist in the scope of the function, so you don’t need to nil them. 

You should use local functions and variables in almost all circumstances.  See:

https://docs.coronalabs.com/tutorial/basics/globals/index.html

Rob