Re: [Wtr-general] Can we use as many variable names without worrying about memory wastage

2007-04-03 Thread vijay
Thanks for all your answers. They were really helpful to me. One small question, do we need to invoke Garbage Collector explictly and if so, how? Thanks, Vijay. ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Can we use as many variable names without worrying about memory wastage

2007-04-03 Thread Charley Baker
You shouldn't have to invoke the garbage collector manually as it runs automatically, most often when ruby is allocating memory and it's internal memory tracker says there isn't any available or if allocating memory fails. -Charley On 4/3/07, vijay [EMAIL PROTECTED] wrote: Thanks for all

[Wtr-general] Can we use as many variable names without worrying about memory wastage

2007-03-28 Thread vijay
Hello people, Can we use as many variable names as we want in a script without worrying about the memory wastage? Each variable is going to occupy some bytes in memory and those bytes would remain occupied as long as the script is running. If so, then in order to avoid memory wastage, to the

Re: [Wtr-general] Can we use as many variable names without worrying about memory wastage

2007-03-28 Thread Ċ½eljko Filipin
Ruby takes care of that, as far as I know. You do not have to worry about memory, unless you have extremely low memory situation. -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Can we use as many variable names without worrying about memory wastage

2007-03-28 Thread Chris McMahon
The number of variables is not going to be a problem. But watch out if you have for instance several arrays with 50,000 elements in each. Those can eat up some memory. Ruby has what's called a garbage collector that handles removing things that the script is done with. -Chris On 3/28/07, vijay

Re: [Wtr-general] Can we use as many variable names without worrying about memory wastage

2007-03-28 Thread Paul Rogers
before I got bored of waiting - Original Message - From: Chris McMahon [EMAIL PROTECTED] Date: Wednesday, March 28, 2007 10:15 am Subject: Re: [Wtr-general] Can we use as many variable names without worrying about memory wastage The number of variables is not going to be a problem