Re: [gtkmm] precompiled headers
- From: Christer Palm <palm nogui se>
- To: Christer Palm <palm nogui se>
- Cc: Cristian Adam <drac gmx net>, gtkmm-list gnome org
- Subject: Re: [gtkmm] precompiled headers
- Date: Wed, 21 Jul 2004 17:05:38 +0200
Christer Palm wrote:
Would it be possible to build a precompiled header for gtkmm as well?
Did some more testing, and as a matter of fact it is quite possible.
Running:
g++34 -c `pkg-config --cflags gtkmm-2.4` -o gtkmm.gch
/.../include/gtkmm-2.4/gtkmm.h
indeed produces a whopping 40MB .gch file. Unfortunately, it does
nothing good for compile times... Testing it with the helloworld example
added ~5s on the compile time, and for the slightly more complex
cellrenderercustom/testpopup example, which also uses <gtkmm.h>
throughout, the compile time is about the same as without a precompiled
gtkmm.h.
I don't know if I did something wrong, or if that's how it works. But
OTOH the gtkmm headers are very different from the stdc++ headers in
that they are almost 100% declarations, so a different result is not
surprising.
--
Christer Palm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]