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

List:       koffice
Subject:    includes
From:       Stephan Kulow <coolo () alpha ! tat ! physik ! uni-tuebingen ! de>
Date:       1999-04-19 19:48:27
[Download RAW message or body]

Hi!

Since it's really a pain to compile koffice,
I thought about some possible changes to make
the compilation faster. This should be every-
one's interest, since compiling is a waste of
time and other resources.

I just did some measurements and a single
file with just one line "#include <koDocument.h>"
expands to 37000 lines of code when ran through
the preprocessor (koffice.h gets included, which
includes CORBA.h, ...) and this file takes my
computer:

real    0m15.038s
user    0m12.410s
sys     0m1.130s 

Quite terrible time I would say. Of course don't
take this statistic as only truth, but it shows
the trend.

And now I would like to know if this wouldn't
qualify to work around including koffice.h
whereever possible and making some "derives from"
relations to "has a" even though this may 
uglify the code. But when it would save 10 
seconds per file, it would be for a good
reason. 

I'm going to test a bit more with this "has
a" stuff and I hope I can give you numbers
to decide on.

Greetings, Stephan

-- 
Und sie nannten ihn, wie er selbst unterschrieb -
Den Trojanischen Pferdedieb

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

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