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 _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"