Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pasteur!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: Object Pascal Keywords: Object Pascal, Object C Message-ID: <27836@ucbvax.BERKELEY.EDU> Date: 31 Jan 89 07:30:05 GMT References: <7096@spool.cs.wisc.edu> <1096@husc6.harvard.edu> <155@Portia.Stanford.EDU> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 5 A naive implementation of malloc() calls NewPtr(). NewPtr() does a heap shuffle to try to put the allocated block at the low end of the heap. The shuffle is slow. NewHandle() doesn't do a shuffle, so it is fast. Object oriented extensions are usually implemented out of handles, so they are fast.