[Top][All Lists]

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

[Lightning] Re: Lightning source compatibility

From: Ludovic Courtès
Subject: [Lightning] Re: Lightning source compatibility
Date: Wed, 22 Sep 2010 12:14:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)


Paulo César Pereira de Andrade

>>>   Another good advantage (other than strict type/value checking) is
>>> compile time. The pseudo assembler I use as a testing tool, at
>>> compiles roughly 5 times faster now, the significant speed increase I
>>> suppose is because it does not need to parse a large sequence of
>>> nested macro calls, and then a large amount of duplicated expressions.
>   I was actually expecting it to become slower, but it seems the C 
> preprocessor
> is the problem, so, better not to abuse macros :-)

OTOH, how does this affect compilation time of a smaller file (the one
above contains 4000+ lines, with many large macros expansions)?  More
importantly, does compilation time really matter?

And if cpp is slow on some pathological input, then cpp hackers could
analyze whether it makes sense to optimize it, as opposed to having cpp
users change their coding style just to work around the slowness.  :-)


reply via email to

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