[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Functions and memory usage
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 17 Oct 2002 04:05:46 -0200
>I think a lot of fragmentation problems are down to the allocation
>algorithm. There is some useful info here and I think this allocator
>looks pretty good. I think I pulled it off this list a while ago. Its
>fast and should be good for a scripting system allocating and
>deallocating little blocks of similar sizes.
>http://g.oswego.edu/dl/html/malloc.html
We'd be very interested in knowing whether simply replacing the system malloc
and friends by dlmalloc (the one at the URL above) helps. It's difficult for
us to test memory allocation pattern in typical, real-life cases. So, someone
with memory fragmentation problems or suspicion of such, could you please try
dlmalloc and see if makes any difference? Please report here. Thanks.
Another thing: Lua typically does not deallocating little blocks of similar
sizes: strings and userdata allocated their "data" arrays right after the
"header" part.
--lhf