From: William Djaja Tjokroaminata Date: 2002-10-01T01:19:31+09:00 Subject: Re: Where Is Method Call Precedence? Hi Bulat, I am using Ruby v 1.6.7 (which is called the "stable version" at www.ruby-lang.org). First, I think in array.c "len" is really of type long (4 bytes in my machine). Second, if you use "Array.new(n)" (as for tuple also we need to know the exact size when we create it), then although initially Ruby allocs 16 elements, it will be resized immediately to exactly n elements. So I guess using tuple will only save memory of 4 bytes per array (assuming the underlying pointer handle is the same for array and tuple). Regards, Bill ========================================================================== Bulat Ziganshin wrote: > no, len is coded in tuple type (Tuple2, Tuple3 and so on). and if you > don't know, Ruby allocs 16 elems when array is created. i don't > remember exact conditions of when initial capa will be lesser than 16