Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 May 2004 17:17:25 +0900
From:      Till Plewe <till@score.is.tsukuba.ac.jp>
To:        freebsd-questions@freebsd.org
Subject:   Re: memory allocation/deallocation (malloc experts needed)
Message-ID:  <20040521081725.GB8756%till@score.is.tsukuba.ac.jp>
In-Reply-To: <40ACB26C.9060901@mac.com>
References:  <20040520050918.GA85327%till@score.is.tsukuba.ac.jp> <40ACB26C.9060901@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 20, 2004 at 09:28:12AM -0400, Chuck Swiger wrote:
> Till Plewe wrote:
> >My problem is essentially that freeing large numbers of small chunks
> >of memory can be very slow. I have run into this problem twice so far.
> [ ... ]
> >One solution would be to divide the memory in larger regions and to
> >tell malloc which chunk to use for the next few calls, respectively when a
> >whole chunk could be freed. But I don't know how to do this.
> 
> Consider using (or searching for information about) a zone-based malloc. 
> NEXTSTEP used one and hence Darwin/OS X probably have sources available for 
> you to consider...
> 

Thanks. I will give it a try. Although I was hoping to find somebody who 
has already an alternative malloc implementation running.

- Till



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040521081725.GB8756%till>