Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Oct 1998 11:03:39 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Nate Williams <nate@mt.sri.com>, James Wyatt <jwyatt@rwsystr.RWSystems.net>
Cc:        freebsd-chat@FreeBSD.ORG
Subject:   Re: Compiler likes tabs better than spaces?? (was Re: ..logging (the problem is fixed))
Message-ID:  <19981009110339.L3369@freebie.lemis.com>
In-Reply-To: <199810082218.QAA29900@mt.sri.com>; from Nate Williams on Thu, Oct 08, 1998 at 04:18:20PM -0600
References:  <4.1.19981007131531.0408a100@mail.lariat.org> <Pine.LNX.3.91.981008112249.7204D-100000@rwsystr.RWSystems.net> <199810082218.QAA29900@mt.sri.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday,  8 October 1998 at 16:18:20 -0600, Nate Williams wrote:
> [ Moved to -chat, as this is really not security related... ]
>
>> Tabs in source can compile a *lot* faster in large C++ source and
>> headers. I also used it over NFS to do *nix programming before I got
>> my vi-feet...
>
> Now, this is one of those statements I *really* like to see, since it
> has no basis on factual data.  Using tabs vs. spaces won't make your
> program compile measurably faster.  Whoever told you this was smoking
> something....

Or maybe he'd been asleep for 20 years.  Like many such legends, it's
based in fact, like the claim in the compiler spec I'm currently
reviewing that integrating the preprocessor and the compiler would
make it faster.  

20 years ago this might have made sense.  Remember the multi-minute
compiles of 500 and 1000 line source files?  But 20 years ago the
machines were about .1% of the speed of modern machines.  Compilers do
a lot more now, and lexical analysis is only a small part.  I've half
ported the original PDP 11 C compiler to FreeBSD, and compilations are
so fast that I can't measure them.  I'm wondering whether I could do a
make world of 2.11BSD in under a minute...

Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key

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



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