From owner-cvs-all Wed Apr 3 6:15:50 2002 Delivered-To: cvs-all@freebsd.org Received: from host213-123-131-244.in-addr.btopenworld.com (host213-123-131-244.in-addr.btopenworld.com [213.123.131.244]) by hub.freebsd.org (Postfix) with ESMTP id 54EC637B419; Wed, 3 Apr 2002 06:15:45 -0800 (PST) Received: by host213-123-131-244.in-addr.btopenworld.com (Postfix, from userid 1001) id 9ED22519; Wed, 3 Apr 2002 15:15:36 +0100 (BST) Date: Wed, 3 Apr 2002 15:15:36 +0100 From: Dominic Marks To: Jeroen Ruigrok/asmodai Cc: Kenneth Culver , Dag-Erling Smorgrav , Matthew Dillon , Mike Barcroft , "M. Warner Losh" , jake@locore.ca, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: 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: <20020403151536.C3198@host213-123-131-244.in-addr.bto> References: <20020402163939.M47850-100000@alpha.yumyumyum.org> <20020403052504.GJ78613@daemon.ninth-circle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020403052504.GJ78613@daemon.ninth-circle.org>; from asmodai@wxs.nl on Wed, Apr 03, 2002 at 07:25:04AM +0200 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Apr 03, 2002 at 07:25:04AM +0200, Jeroen Ruigrok/asmodai wrote: > -On [20020402 23:45], Kenneth Culver (culverk@alpha.yumyumyum.org) wrote: > >> Using spaces instead of tabs, especially in headers, has a noticeable > >> (negative) impact on compilation speed. We could speed buildworld up > >> significantly by stripping comments and superfluous whitespace from the > >> headers we install in /usr/obj. > > > >This I didn't know, but it makes sense. > > It does, since the first production rule in any grammar of a language is > often to match whitespace. [Since it occurs most often, placing it at the > top makes a lot of sense.] > > The parser has to iterate 8 times instead of 1 time for a single tab > character. > > How much gain you really get I don't know, that would need to be timed. > > You can always look at: http://ccache.samba.org/ to improve compilation > speed. /usr/ports/devel/ccache even. :) > -- > Jeroen Ruigrok van der Werven / asmodai / Kita no Mono > asmodai@[wxs.nl|xmach.org], finger asmodai@ninth-circle.org > http://www.softweyr.com/asmodai/ | http://www.[tendra|xmach].org/ > Cling, cling to your mind, my Words... > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe cvs-all" in the body of the message -- Dominic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message