From owner-cvs-all Tue Apr 2 23:15:27 2002 Delivered-To: cvs-all@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id 2590637B419; Tue, 2 Apr 2002 23:15:22 -0800 (PST) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.2/8.12.2) with ESMTP id g337Eg4F048245; Wed, 3 Apr 2002 09:14:43 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) 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 In-Reply-To: Your message of "Wed, 03 Apr 2002 07:25:04 +0200." <20020403052504.GJ78613@daemon.ninth-circle.org> Date: Wed, 03 Apr 2002 09:14:42 +0200 Message-ID: <48244.1017818082@critter.freebsd.dk> From: Poul-Henning Kamp 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 In message <20020403052504.GJ78613@daemon.ninth-circle.org>, Jeroen Ruigrok/asm odai writes: >-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. My buildworld time increased about 2 seconds after running /usr/src through "pr -e -t". Disk usage on the other hand shot up by 30M. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message