Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!njin!rutgers!cbmvax!cbmehq!cbmvie!alison!mjl From: mjl@alison.at (Martin J. Laubach) Newsgroups: comp.sys.amiga.programmer Subject: Re: free() in SAS C Message-ID: Date: 6 May 91 19:13:06 GMT References: <1991May02.143148.22732@edb.tih.no> Reply-To: mjl@alison.at Distribution: comp Organization: The Austrian Amiga Developers Association/ETA002 Lines: 15 In article , Matthew Dillon writes: | Actually, AllocMem & FreeMem are *faster* than SAS/C's | malloc & free. Nevertheless AllocMem() is quite slow when you are doing more than a few allocations. I was able to speed a program of mine doing about 14000 small allocs from something like two minutes to about 30 seconds by using a simple pool manager. Thus: Use AllocMem() as long as you like, but when doing lots of similar small allocs, use a custom pool routine. mjl