[Qt-interest] include modules vs. files
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Tue Feb 3 00:34:50 CET 2009
It shouldn't make that much of a difference in code object size, since
the only change will be static methods, templates and other compiled
objects...
However, compile time will change, since your including a lot more...
And your dependencies wont be minimized..
Also, I always include the minimum necessary to compile...
Scott
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Israel Brewster
> Sent: 2009-02-02 15:07
> To: Qt Interest
> Subject: [Qt-interest] include modules vs. files
>
> When looking at the help files for, say, QLineEdit, you see that it is
> in a specific module (QtGui), as well as the specific header for the
> module (QLineEdit). If you are only using a handful of object types in
> your application, is there an advantage to #including just the
> specific headers you need, rather than the entire module? Or would
> that just be wasted effort with no benefit? I would imagine that the
> executable size might be somewhat smaller, but I would like
> confirmation (or refutation) of this. Thanks!
>
> -----------------------------------------------
> Israel Brewster
> Computer Support Technician
> Frontier Flying Service Inc.
> 5245 Airport Industrial Rd
> Fairbanks, AK 99709
> (907) 450-7250 x293
> -----------------------------------------------
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list