[comp.sys.mac] Spy! 1.0b4

wilson@csli.STANFORD.EDU (Nathan Wilson) (11/23/88)

Ok now I have spy so I can see how bad my program is being.  In
particular it tells me when I start up that I only have 10k of
application heap.  As soon as I start doing stuff this drops to 6k and
then bounces along from there.  It usually gets down to about 1.5k and
then goes back up 2-3k.  Is this just heap compaction doing its job or
is the heap getting bigger?  The reason I ask is that when I run some
applications (MPW, MacPaint) they have huge heaps like 300-500k.  When
I run SuperPaint with the standard Multifinder memory partition it has
only 26k of heap, but when I increase the memory partition all the new
memory goes straight to the heap.  My poor application, on the other
hand, just sticks with its 10k of heap no matter what.  Is this ok or
should I be doing something clever at startup time?  (At this point I
am doing almost nothing about memory management except trying to
allocate pointers early.)  I've read the memory manager in vol 2 of IM
but I can't figure out how to change the size of the application heap.
	Thanks in advance,
		Nathan Wilson
		Teleos Research
		nathan@teleos.com