[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kuml-devel
Subject:    Re: On reducing compile times (was: CVS)
From:       Mark Coletti <mcoletti () clark ! net>
Date:       2000-03-03 22:25:45
[Download RAW message or body]


On Sat, 19 Feb 2000 10:39:30 +0100, p_george wrote:
> Mark Coletti wrote:
>  
[...]

> >   I've attached a version of the perl script I used to added double
> > include sentinals.  One day Real Soon Now, I'm going to clean it up,
> > POD-ize it, and submit the sucker to freshmeat.

> I tried it on kuml but did not get a notable reduction of compile time.

  Well, crud.  One thing I suppose I could look into is using a few
other tricks to reduce compile time, especially re-compile time.  One
of which involves the obvious of replacing superfluous #includes with
class and struct declarations and adding the #includes back into the
implementation file.  Another trick advocated by Lakos in _C++ for
Large Scale Projects_ involves hiding the private section in a hidden
struct in the implementation file; the class declaration just has
pointer to the hidden structure.  This means that any dependent types
in the private section that required a #include can now use forward
declarations.  (If that's possible.  If they're really typedefs, then
you're still stuck with including the header. The same goes for any
dependent base class headers.)

Cheers!

Mark
-- 
Mark Coletti | mailto:mcoletti@clark.net | http://www.clark.net/~mcoletti/
		  Primordial soup for dinner again?

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic