[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Functions and memory usage
- From: "terenctb" <terenctb@...>
- Date: Thu, 17 Oct 2002 06:11:55 -0000
We are did try to use dlmalloc to replace the regular malloc but it
didn't seem to make much difference...well other than the fact we are
probably doing something wrong anyway ;-)>
I also found out(not sure if the info that valid) that the dlmalloc
is the same one used by in linux anyways so it seemed kinda silly to
--- In lua-l@y..., Luiz Henrique de Figueiredo <lhf@t...> wrote:
> >I think a lot of fragmentation problems are down to the allocation
> >algorithm. There is some useful info here and I think this
> >looks pretty good. I think I pulled it off this list a while ago.
> >fast and should be good for a scripting system allocating and
> >deallocating little blocks of similar sizes.
> We'd be very interested in knowing whether simply replacing the
> and friends by dlmalloc (the one at the URL above) helps. It's
> us to test memory allocation pattern in typical, real-life cases.
> with memory fragmentation problems or suspicion of such, could you
> dlmalloc and see if makes any difference? Please report here.
> Another thing: Lua typically does not deallocating little blocks of
> sizes: strings and userdata allocated their "data" arrays right
> "header" part.