home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / oop / macapp3 / 644 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.5 KB

  1. Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!spool.mu.edu!agate!stanford.edu!apple!applelink.apple.com
  2. From: TOM_BECKER@UMACMAIL.APLDBIO.COM
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: MethTables? Use -NoBottlene
  5. Message-ID: <9301280318.AA12262@apldbio.com>
  6. Date: 27 Jan 93 19:12:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 28
  10.  
  11. From: "Tom Becker" <Tom_Becker@umacmail.apldbio.com>
  12. To: "MacApp3 Tech$" <macapp3tech$@applelink.apple.com>
  13.  
  14. MethTables? Use -NoBottleneck!
  15. Dear Friends,
  16.  
  17. If your %_Methtables segment overflows, and you're trying to build with -Debug,
  18. the first thing you should try is -NoBottleneck.  MABuild -Debug automatically
  19. turns on -Bottleneck, which inhibits the linker's method table optimizations.
  20. MABuild -Debug -NoBottleneck turns the optimizations back on.  The caveat is
  21. you lose "discipline method calls" on all the methods that are optimized into
  22. ordinary procedure calls, so you could end up inside a method with "this ==
  23. nil"!  Check objects with FailNonObject before calling their methods.
  24.  
  25. If you're or overflowing your method table and you're already using
  26. -NoBottleneck or -NoDebug, my deepest sympathies.  Before you try -Model Far,
  27. you may want to try hacking your application so it has fewer classes and fewer
  28. overridden methods.  Not only may this get you in under the wire, it can
  29. improve your app's structure and performance at the same time.
  30.  
  31. Hope this helps,
  32.  
  33. Tom Becker
  34. Applied Biosystems, Inc.
  35. twb@apldbio.com
  36.  
  37.  
  38.  
  39.