From: MikkelFJ Date: 2002-10-01T04:37:46+09:00 Subject: Re: Where Is Method Call Precedence? "Mauricio Fern�ndez" wrote in message news:20020930165416.GB1790@kodos... > On Mon, Sep 30, 2002 at 10:36:41PM +0900, William Djaja Tjokroaminata wrote: > > Hi Bulat, > > > > 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. Depends - on a copying garbage collector it doesn't matter. Allocation happens by moving a pointer and deallocating happens by copying objects that are still in use. Of course Ruby's garbage collector isn't copying. OCaml uses a mixture where the young generation is copying and the old generation is mark sweep. (Young survivors are copied into the mark/sweep heap). Mikkel