Path: utzoo!attcan!uunet!super!udel!rochester!rutgers!tut.cis.ohio-state.edu!bloom-beacon!oberon!nunki.usc.edu!castor.usc.edu!wdao
From: wdao@castor.usc.edu (Walter Dao)
Newsgroups: comp.sys.amiga
Subject: gladiator from hell
Keywords: sexual tyranosaures .
Message-ID: <1455@nunki.usc.edu>
Date: 23 Sep 88 19:05:32 GMT
Sender: news@nunki.usc.edu
Reply-To: wdao@castor.usc.edu (Walter Dao)
Organization: University of Southern California, Los Angeles, CA
Lines: 19


let's say I want to alloc several blocks of mem. Is it better to do an 
allocmem for each of them ? (so for 2 bitplanes and 1 copper list I would call
alloc mem 3 times and fremem 3 times at the end )
or just use 1 huge alloc mem (then I would use an alloc mem 17k. long ,
bitplane 1 would be at the address returned by the alloc mem func, bp_2 would
be at that address + 8k and the copper list at the original adress + 16 )
and only 1 freemem would be needed.
In the first case , a fragmemted memory (utilites floating around the memory)
would cause less failure to occur in the alloc mem process. But it takes time
(relatively) to free all the blocks. 
In the second time, time is saved (1 alloc mem insstead of 3) but if there are
no free contiguous memory of the required size, it would fail . 


So what is better ? 


                                     asdfasdfasdf the merciless .