Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Apr 2002 12:08:05 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        Kenneth Culver <culverk@alpha.yumyumyum.org>, Matthew Dillon <dillon@apollo.backplane.com>, Mike Barcroft <mike@FreeBSD.ORG>, "M. Warner Losh" <imp@village.org>, jake@locore.ca, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: style(9) bike shed, 371st edition (was: cvs commit: src/sys/i386/i386 critical.c src/sys/i386/include cpufunc.h critical.h src/sys/i386/isa apic_vector.s icu_vector.s src/sys/kern kern_fork.c kern_proc.c kern_switch.c src/sys/alpha/alph)
Message-ID:  <20020404120805.U44513@wantadilla.lemis.com>
In-Reply-To: <xzp7knoq591.fsf@flood.ping.uio.no>
References:  <20020402154308.F46914-100000@alpha.yumyumyum.org> <xzplmc5u6rp.fsf@flood.ping.uio.no> <20020403100131.Q26122@wantadilla.lemis.com> <xzp7knoq591.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday,  3 April 2002 at 15:30:18 +0200, Dag-Erling Smorgrav wrote:
> Greg 'groggy' Lehey <grog@FreeBSD.org> writes:
>> On Tuesday,  2 April 2002 at 23:31:38 +0200, Dag-Erling Smorgrav wrote:
>>> Using spaces instead of tabs, especially in headers, has a noticeable
>>> (negative) impact on compilation speed.
>> Do you have figures?
>
> No.  I benchmarked this a long time ago on C++ sources using Sun's
> compiler suite; the difference was noticeable but the sample was
> small.

Once upon a time, the lexical analysis really did take up a
significant part of the compiler's time.  But nowadays faster
processors make it easier to use more time-consuming code generation
algorithms, and I suspect that lexical analysis falls into the noise
anyway.  It would be interesting if somebody would examine it.

On a similar note, Andrew Tridgell has written a compiler cache which
claims to be able to speed up things by recognizing already-compiled
sources.  I'm a little sceptical myself, but everybody who has tried
it says it's very useful.  http://ccache.samba.org/ for more details.

Greg
--
See complete headers for address and phone numbers

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020404120805.U44513>