Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cmcl2!ccnysci!alexis From: alexis@ccnysci.UUCP (Alexis Rosen) Newsgroups: comp.sys.mac.programmer Subject: Re: Append menu is slow. Message-ID: <2016@ccnysci.UUCP> Date: 17 May 89 05:29:54 GMT References: <89May9.171757edt.11077@ephemeral.ai.toronto.edu> <29122@ucbvax.BERKELEY.EDU> <30414@apple.Apple.COM> <8905102252.AA29726@snoopy.UMD.EDU> Reply-To: alexis@ccnysci.UUCP (Alexis Rosen) Organization: City College of New York Lines: 16 In article <8905102252.AA29726@snoopy.UMD.EDU> res12@snoopy.UMD.EDU (Matthew T. Russotto) writes: >So, how do we avoid the overhead caused by CalcMenuSize? I know of one >way: Patch CalcMenuSize to do nothing before all the appends, and patch >it back before the last append. But patching traps isn't my favorite thing >to do either. Hm. I considered this approach for an XCMD I wrote a while ago. I decided not to do this because it seems that this would break any ROM fixes that might be implemented with come-from tests on that trap. Pretty unlikely, to be sure, but there are better ways (that have already been posted). --- Alexis Rosen alexis@ccnysci.{uucp,bitnet} alexis@rascal.ics.utexas.edu (last resort)