[aspectc-user] A General Question about Compilation Time

Olaf Spinczyk Olaf.Spinczyk at informatik.uni-erlangen.de
Fri Nov 18 11:22:22 CET 2005


Hi,

ac++ 1.0pre1 shouldn't be slower than 0.9.3. According to my 
measurements it should even be a few percent faster. 1.0pre2 will be 
about 20% faster than 1.0pre1. However, this is still slow and we will 
continue to improve the performance step by step.

If you want to reduce the compilation time, you could try to reduce the 
number of translation units, e.g. like this:

project.cc:
#include "A.cc"
#include "B.cc"
#include "C.cc"

ag++ -c project.cc -o project

Of course, this is not always possible.

If you know what you are doing, i.e. where your advice affects the 
component code, you could also weave only the relevant translation units 
instead of all files. For example, in the Puma project we weave only a 
subset of the translation units and create transformed header files. The 
translation units that are not woven include the transformed headers.

I hope this helps,

Olaf

Sergio Queiroz wrote:
> Hi!
> 
> I am just curious about the compilation time of ac++ 1.0, because it seems to
> me that the older versions are something faster than the current one, tried to
> compile some examples and it takes much time.
> 
> Am I correct about this feeling? I also saw the roadmap of next version and
> there is an item "improved performance".
> 
> What I can do to reduce the compilation time?
> 
> Sérgio
> 
> _______________________________________________
> aspectc-user mailing list
> aspectc-user at aspectc.org
> http://www.aspectc.org/mailman/listinfo/aspectc-user




More information about the aspectc-user mailing list