home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 13958 < prev    next >
Encoding:
Text File  |  1992-08-13  |  2.1 KB  |  48 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!sunic!kth.se!dront.nada.kth.se!d88-jwa
  3. From: d88-jwa@dront.nada.kth.se (Jon W{tte)
  4. Subject: Re: Lots of precompiling in ThC (Re: Help!  System error #28)
  5. In-Reply-To: k044477@hobbes.kzoo.edu's message of Thu, 13 Aug 1992 15:48:21 GMT
  6. Message-ID: <D88-JWA.92Aug14000416@dront.nada.kth.se>
  7. Originator: d88-jwa@dront.nada.kth.se
  8. Sender: usenet@kth.se (Usenet)
  9. Nntp-Posting-Host: dront.nada.kth.se
  10. Organization: Royal Institute of Technology, Stockholm, Sweden
  11. References: <D88-JWA.92Aug13162902@dront.nada.kth.se>
  12.     <1992Aug13.154821.12112@hobbes.kzoo.edu>
  13. Date: Thu, 13 Aug 1992 23:04:16 GMT
  14. Lines: 32
  15.  
  16. .kzoo.edu> k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
  17.  
  18.    >This trick will ... reduce the size of
  19.    >your project file a lot. If you use the class library, why not include
  20.    >those headers as well ? A class library project then becomes < 600K in
  21.    >size !
  22.  
  23.    Two reasons not to do this:
  24.  
  25.    (1) Option-clicking on the title bar won't display header files that are
  26.    also in a precompiled header.  This makes bouncing around source code a
  27.    lot slower.
  28.  
  29. Well, don't you know the class library by heart anyway ?
  30. And there's this excellent browser available too, and for
  31. a lot of stuff I use cmd-F Whatever cmd-H <CR> which is
  32. really what I want to do (as in; where is this stuff referenced)
  33.  
  34.    (2) Last I knew (ThC4, I think), the compiler took quite a while to chew
  35.    through a huge precompiled header file.  While I'm sure it's faster to
  36.    read a precompiled symbol than to parse it, huge precompiled files mean
  37.    you prepend, to each file, a lot of code you don't need.  When I removed
  38.    all the TCL files from my precompiled header, my compile speed doubled.
  39.  
  40. Depends on your disk cache size. Myself I use a RAM disk, but
  41. setting the cache to 512 kB will fit the headers nice & easy.
  42.  
  43. -- 
  44. - I have decided that it is not boxes but my lack of skill that's the problem.
  45. - Traitor! This kind of attitude will get you nowhere around here. If you must
  46.   know, it's not your boxes that are the problem, it's your lack of a
  47.   sufficient number of boxes. Go out and buy something.
  48.