Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!stanford.edu!neon.Stanford.EDU!torrie From: torrie@cs.stanford.edu (Evan Torrie) Newsgroups: comp.sys.amiga.advocacy Subject: Re: The Amiga's Future Message-ID: <1991Jun15.170958.29852@neon.Stanford.EDU> Date: 15 Jun 91 17:09:58 GMT References: <1991Jun10.151040.28541@mintaka.lcs.mit.edu> <376@orac.UUCP> Sender: torrie@neon.Stanford.EDU (Evan James Torrie) Organization: Computer Science Department, Stanford University, Ca , USA Lines: 18 bret@orac.UUCP (Bret Indrelee) writes: >On another tangent, why has no one mentioned one of the biggest reasons that >the MacIntosh is so slow? >On the MacIntosh, all data is referenced via a handle. This is a pointer >to a pointer. After making a toolbox call that allocates storage space, it >is neccessary to re-load from the original handle because a garbage >collection may have occurred. If you want speed in a tight loop, you lock the handle down (using HLock()), so that you're guaranteed the block of memory can't move. -- ------------------------------------------------------------------------------ Evan Torrie. Stanford University, Class of 199? torrie@cs.stanford.edu "I didn't get where I am today without knowing a good deal when I see one, Reggie." "Yes, C.J."