From: William Djaja Tjokroaminata Date: 2002-10-01T04:37:38+09:00 Subject: Re: Where Is Method Call Precedence? Hi, Isn't that in the current Ruby (1.6.7) the memory area is already managed in the 'VALUE *ptr' member of struct RArray? Are you also suggesting to remove both 'len' and 'capa' and using some C "sizeof" trick? But then it seems it is still only a saving of 8 bytes per tuple as compared to an array (I don't think we can remove the 'struct RBasic basic' member). Regards, Bill ============================================================================ Mauricio Fern?ndez wrote: > On Mon, Sep 30, 2002 at 10:36:41PM +0900, William Djaja Tjokroaminata wrote: >> Do you mean just because we need to story only "len" instead of "len" and >> "capa" for each array/tuple? I think it is only a saving of 4 bytes per >> array. > If size is fixed (de)allocation can be made much faster and is > easily managed with a memory arena. >> Bulat Ziganshin wrote: >> > tuple is an array with fixed size. when you have very large number of >> > small arrays, you will save many memory bytes