Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!wang!bu-tyng!three!cory From: cory@three.mv.com (Cory Kempf) Newsgroups: comp.sys.mac.system Subject: Re: AppleEvent Throughput... Message-ID: <459@three.mv.com> Date: 3 Sep 90 01:31:24 GMT References: <9842@goofy.Apple.COM> Organization: EnigamI, Nashua, NH. Lines: 41 chewy@apple.com (Paul Snively) writes: > High-Level Events will have a higher priority than user-initiated >events, so that AppleEvent throughput will be at an acceptable level). Uh, have you lookede at the actual throughput rate of AppleEvents? I was running some experiments the other day with AppleEvents... I wrote a simple program that just fed Apple Events to itself. I ran this on a MacIIx with a couple of background tasks running in the background (GLA, CD Remote, Moire, and waiting). I noticed that I was giving up the CPU *FAR* too much... According to the timing that I did, each call to WNE took on the order of 6 ticks. I tried stacking the queue (preposting 5 AE... it actually took longer in the loop). I also tried GNE instead of WNE: no effect. I got rid of GLA, waiting, and CD Remote: WNE now took only 2 ticks. For kicks, I tried removing the call to WNE (leaving in the call to post the AE). Each post took about .4 ticks (still too long in my book). I also tried removing the call for posting events... the entire loop (1000 cycles) completed within 1 tick (the program said that it took zero). This is on an unloaded (e.g. no serious background processing) MacIIx and system 7a9. Now grant, this *IS* and alpha system release, and there is supposed to be some code in there for debugging. I think that these numbers need to be improved by at least two orders of magnitude before the AE system can be used for internal program communications (which is a real pisser: I was planning on using it for my interobject communications to build a multithreaded application. Now, I either must special case or use a new system). I know the system 7 development team is planning on speeding up the system, but I think that a two order of magnitude improvement is a bit much to expect. (I would really love to be proven wrong though!!) I really do not think that AE throughput is at an "Acceptable Level" +C -- Cory Kempf I do speak for the company (sometimes). The EnigamI Co. 603 883 2474 email: cory@three.mv.com, harvard!zinn!three!cory