Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site lll-crg.ARpA Path: utzoo!watmath!clyde!cbosgd!ihnp4!ucbvax!ucdavis!lll-crg!brooks From: brooks@lll-crg.ARpA (Eugene D. Brooks III) Newsgroups: net.lang.c Subject: Re: free and malloc Message-ID: <911@lll-crg.ARpA> Date: Fri, 11-Oct-85 21:09:28 EDT Article-I.D.: lll-crg.911 Posted: Fri Oct 11 21:09:28 1985 Date-Received: Sun, 13-Oct-85 04:35:20 EDT References: <324@bcsaic.UUCP> <10200013@ada-uts.UUCP> <103@emacs.UUCP> Reply-To: brooks@lll-crg.UUCP (Eugene D. Brooks III) Distribution: net Organization: Lawrence Livermore Labs, CRG Group Lines: 9 >Does anyone out there really use free? Yep, I do in packet switched memory server simulators. I am allocating and freeing packets all the time. That is until I realize that I am spending too much cpu time in malloc and free. One then only mallocs 10000 of them at a time and links them into a free list which a packet allocator pmalloc and pfree operate out of. .