Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uunet!mcsun!cernvax!chx400!bernina!neptune!c!mneerach From: mneerach@iiic.ethz.ch (Matthias Ulrich Neeracher) Newsgroups: comp.sys.mac.programmer Subject: Re: Linked Lists: Handles or Pointers? Message-ID: <22525@neptune.inf.ethz.ch> Date: 24 Jan 91 18:46:03 GMT References: <1991Jan24.145729.12853@nada.kth.se> <1991Jan23.002212.7648@umiami.ir.miami.edu> <.664719435@rw8.urc.tue.nl> Sender: news@neptune.inf.ethz.ch Reply-To: mneerach@iiic.ethz.ch Organization: Departement Informatik, ETH, Zurich Lines: 20 In article <1991Jan24.145729.12853@nada.kth.se>, d88-jwa@aswad.nada.kth.se (Jon W{tte) writes: > If you use a dereferenced handle (like, pass it to the ToolBox) > you'll have to lock it. Absolutely. > If you lock a handle, it's nice to do it > at the top of the heap. Only if you are going to lock it for a certain time and across many memory allocating calls. MoveHHi() certainly doesn't influence the *correctness* of your program, but indiscriminate use can hurt *performance* terribly. Matthias ----- Matthias Neeracher mneerach@iiic.ethz.ch "These days, though, you have to be pretty technical before you can even aspire to crudeness." -- William Gibson, _Johnny Mnemonic_