home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / hypercar / 3198 < prev    next >
Encoding:
Internet Message Format  |  1992-08-22  |  1.7 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!kuhub.cc.ukans.edu!husc-news.harvard.edu!husc8!ward1
  2. From: ward1@husc8.harvard.edu (Lester Ward)
  3. Newsgroups: comp.sys.mac.hypercard
  4. Subject: Re: How magic is the CompileIt?
  5. Message-ID: <ward1.714517700@husc8>
  6. Date: 22 Aug 92 21:08:20 GMT
  7. References: <15AUG199209103159@oregon.uoregon.edu> <1992Aug16.033156.6692@reed.edu> <1992Aug22.004656.7727@organpipe.uug.arizona.edu>
  8. Lines: 24
  9. Nntp-Posting-Host: husc8.harvard.edu
  10.  
  11. jahnke@biosci.arizona.edu (Jerome Jahnke) writes:
  12.  
  13. >In article <1992Aug16.033156.6692@reed.edu>, sharvy@reed.edu (V Headshape) writes:
  14. >>  I thought HC 2.0 compiled scripts on its first execution of them and
  15. >> stashed them in RAM, so why would compileIt be faster?  At least, why
  16. >> would it be 50 times faster?
  17.  
  18. >CompileIt actually generates 680x0 microcode.
  19.  
  20. Right, it turns HyperTalk functions into compiled XFCN code resources.  It
  21. also lets you call Toolbox routines directly from HyperTalk, as well as
  22. declare the variable types upon which the Toolbox operates and other structs
  23. (like your own arrays!).
  24.  
  25. The fine print is that CompileIt can actually make your code .slower..  Any
  26. time you get information from or otherwize call back to HyperCard, you slow
  27. down your script. How to get around this is very well documented in the
  28. CompileIt manual.  (As an example, if you 'get the clickLoc' in your script,
  29. ComilieIt will have to call back to hyperCard and call the clickLoc function.
  30. You should replace that line with the Toolbox call which does the same thing
  31. (I forget the name), so that the compiled script will get the click location
  32. from the Mac directlt instead of through hyperCard.)
  33.  
  34. Wordman
  35.