free and malloc

Eugene D. Brooks III brooks at lll-crg.ARpA
Sat Oct 12 11:09:28 AEST 1985


>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. 
.



More information about the Comp.lang.c mailing list