slowcompile

This is a discussion on slowcompile within the C++ Programming forums, part of the General Programming Boards category; Why compiling a simplest thing using people's library (or environment) is SO SLOW. Ecere, Qt, wxWidgets, GTK, irrlitch, SDL ... ...

  1. #1
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489

    slowcompile

    Why compiling a simplest thing using people's library (or environment) is SO SLOW.

    Ecere, Qt, wxWidgets, GTK, irrlitch, SDL ... whatever,

    This make their awesome thing harder to learn,
    Just GET it OFF out my mind!!

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    Often this has to do with the amount of code in header files. If a library has a lot of templates (like boost), it will increase the compile time of anything that includes those header files by quite a bit.

  3. #3
    Making mistakes
    Join Date
    Dec 2008
    Posts
    476
    Boost's compile time is just horrible because of all that magic done with it.

    On Windows, you could use the installers/on Linux, use your package manager.

  4. #4
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489
    Native C++ weakness, aaargh!

    I tought Qt is faster than javax.swing.*

    It's just too much overhead.

    Worse than the interpreted one.
    Just GET it OFF out my mind!!

  5. #5
    The larch
    Join Date
    May 2006
    Posts
    3,573
    Actually I haven't noticed that including things like wxWidgets headers makes that much of a difference (with an exception for boost headers). There might be other factors, such as: do you perhaps include too many unnecessary stuff in your headers? If you change one header, does it mean that you'll have to recompile most of the projects - even lots of stuff that don't use that header?
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  6. #6
    Making mistakes
    Join Date
    Dec 2008
    Posts
    476
    Qt is IMO faster than swing, but slower to compile.

  7. #7
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,411
    Visual Studio's precompiled headers can help out a quite a bit with speed, if you are using Windows.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21