> From: Scott Johnson [mailto:[EMAIL PROTECTED]]
> The performance benefits of precompiled headers become obvious
> when your project size reaches 10, 20, 40 or more source files.

Here are some rough numbers to illustrate this better.  I just did some
timing tests on one good-sized project I have here.  The first test is with
my master prefix file precompiled, and the second test is with the same
prefix file not precompiled but getting re-compiled with each .cpp file.
This is on a 400 MHz Pentium II laptop.  I ran both tests a few times each
and report an average elapsed time.  Each test consists of starting the IDE
(from the command line), clearing all object code, building, and exiting.

    Test 1: average  34 seconds
    Test 2: average 300 seconds

Clearly, proper usage of precompiled headers is a big win in this case.
This app's build time would be intolerable otherwise.  YMMV. 

-slj-


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to