automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PCH support


From: Miles Bader
Subject: Re: PCH support
Date: Mon, 26 Dec 2011 00:20:44 +0900

Dave Hart <address@hidden> writes:
> True, but most C/C++ #includes orders of magnitudes more lines than
> they contain themselves, so assuming the source code is rearranged to
> have a "precomp.h" containing the bulk of #includes, the compile will
> be notably faster.

Faster enough to be worth the annoyance for the developer of twisting
his source code to fit the "pch style" (which seems notably uglier)?

Machines are very fast these days, and even using tons of big headers,
C++ parsing doesn't seem such a big deal as it maybe used to.
[AFAICT, slow compilation seems far more often connected with
optimization than parsing.]

-Miles

-- 
Barometer, n. An ingenious instrument which indicates what kind of weather we
are having.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]