Wednesday, 11 September 2013

Is there any advantage to removing a variable?

Is there any advantage to removing a variable?

I'm programming in Ruby (although it's probably not very relevant), and
dealing with some quite large data sets. As a consequence, some of my
variables might be quite large.
Once I no longer need a variable, is there any advantage to removing it?
Would this potentially free some RAM or have any other advantage?

No comments:

Post a Comment