[comp.sys.mac.programmer] ROM bug->ThinkC malloc weirdness

watt@eleazar.dartmouth.edu (Gill Watt) (02/27/91)

howdy,

I just read about the Memory Manager bug in the 
Feb 26 MacWeek ("Ask David Ramsey") and I got a 
copy of the MMInit patch.  So far, the performance 
improvement has been great (~4x).

My code allocates (using ThinkC's malloc() call for
UNIX portability) approximately 4 Megs during a 
standard run.  
	
I have done a substantial amount of profiling on the 
code and have just noticed a strange thing:

When I run the code from within the ThinkC development
environment, the malloc portion of the code requires
about 1/2 the time that it requires when I run it as
a standalone application.  The execution time of the 
rest of the code is constant. 

Does anyone know why this happens?  

Thanks,

-- 
---------------------------------------------------------------------
Gill Watt (watt@eleazar.dartmouth.edu)
Thayer School of Engineering, Dartmouth College, Hanover, NH  03755
---------------------------------------------------------------------