From: Timothy Goddard Date: 2006-08-28T16:50:09+09:00 Subject: Re: rinda and ruby numbers Memory allocation is not your concern unless you are using the C API. Memory is allocated as required and dead objects are garbage collected. Although process memory will not yet shrink in Ruby (it doesn't have a compacting garbage collector) it will be reused for new objects. Ruby numbers will automatically generate instances of Bignum for any operation which would overflow the range of a Fixnum object. The effect of this is they grow as required to fit large numbers. What exactly do you want to do? Maybe we can help if you explain your problem. Xaea Alvein wrote: > 1. is there any way to pre-allocate memory used by tuplespace, or is the > memory used automatically set depending on the machine's free memory? > > 2. it is said that ruby numbers' sizes aren't fixed, and depend on > system's free memory. is there any ruby switch or something that can set > the sizes statically, and not "manually" by bitwising the numbers? > > -- > Posted via http://www.ruby-forum.com/.