Bo Peng a écrit :
> * Adding '#include "foo.moc"' at the end of 'foo.C'
> will reduce compilation times by 30-40% on the
> average. The old scheme will not be supported in Waf
> and i believe scons now supports the foo.moc scheme
> too.
>
> ## Bo: Does anydoby know this?

We could maybe do that indeed, for both qt3 and qt4. I guess this will
speedup a full recompile. But it will slow down a bit subsequent
compiles on a few qt files.

Opinion?

Using the attached patch, the compiling time for libqt4.a (including
autoconf stuff) improves from 2:59s to 2:18s (under linux, using -j3
option). I would call it a significant improvement and suggest that
you try it on your machine. (Strange enough, the null build time for
qt4.a decreases from 20s to 23s.)

Decrease from 20s to 23s? The math seems wrong here :-)
If you mean 1m20s to 23s, that's a very nice improvement indeed. It's probably because there's less file that needs checking.

Of course, to apply the patch, we will need autotools adjustment as well.

Yes, plus the fact that autotools use XXX_moc.C naming scheme.

I am going to test your patch right now but does it contains the test on client building?

If there is a strong improvement with mingw, I will advocate such a change for sure.

Is there any strong opinion against that?

Abdel.

Reply via email to