[gnu.g++] Inline functions give faster compilation!

bryan@UUNET.UU.NET (Bryan Boreham) (08/28/89)

I recently noticed, much to my amazement, that using the
-finline-functions switch can give a sizeable reduction in
compile-time. Here is an example:

kewill% time g++ micky.c -S -I../../src
33.4u 4.2s 0:54 69% 280+784k 109+89io 3pf+0w
kewill% time g++ micky.c -S -I../../src -finline-functions
26.2u 2.5s 0:31 90% 272+1120k 72+62io 3pf+0w

"micky.c" is a demo program from ET++ that is around 2K long; 148K
pre-processed.

I guess your mileage may vary, depending on the number of in-class
functions you have. Also, version 1.35 will sometimes core-dump when
using -finline-functions. This is fixed in 1.36.

Bryan.