Jump to content

Recommended Posts

Posted

How much memory does an empty variable take up?

I'm sure it's only significant if you start using tens of thousands of variables. Don't worry about just a few :D
Posted

if u have functions, then as far as possible keep the variables local and the scope (if i understand correctly) dies as soon as you are out of the function, thereby saving space if u are concerned! anyways as people have mentioned, its generally ignorable as long as u free the variable to null after its usage.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...