Xref: utzoo comp.sys.mac:23182 comp.sys.mac.programmer:3240 Path: utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!decwrl!labrea!csli!wilson From: wilson@csli.STANFORD.EDU (Nathan Wilson) Newsgroups: comp.sys.mac,comp.sys.mac.programmer Subject: Re: Spy! 1.0b4 Message-ID: <6527@csli.STANFORD.EDU> Date: 22 Nov 88 18:29:39 GMT References: <15244@iuvax.cs.indiana.edu> Reply-To: wilson@csli.UUCP (Nathan Wilson) Organization: Center for the Study of Language and Information, Stanford U. Lines: 18 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