Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jul 2001 09:58:45 +0300
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        obrien@FreeBSD.org, Dima Dorfman <dima@unixfreak.org>, Greg Lehey <grog@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/compat-43 gethostid.3 setruid.3 sigpause.2  sigsetmask.2 sigvec.2 src/lib/libc/gen exec.3 getprogname.3 glob.3  setproctitle.3 syslog.3 src/lib/libc/gmon moncontrol.3  src/lib/libc/i386/sys i386_get_ioperm.2 ...
Message-ID:  <3B53E225.1D5D0E4F@FreeBSD.org>
References:  <20010716055144.216903E28@bazooka.unixfreak.org> <xzpofqkqw0y.fsf@flood.ping.uio.no> <20010716185008.A33483@dragon.nuxi.com> <xzpbsmkqpne.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav wrote:

> "David O'Brien" <obrien@FreeBSD.org> writes:
> > On Tue, Jul 17, 2001 at 01:44:29AM +0200, Dag-Erling Smorgrav wrote:
> > > Unnecessary whitespace, comments and preprocessor directives in
> > > commonly used headers can have a significant effect on build times.
> > I think you're being a little ridiculous here DES.  I don't think you'd
> > see a measurable difference in `make buildworld' times for the random
> > trailing white space we are talking about here.
>
> This may be too small to measure, but removing superfluous comments
> (particularly copyright notices) and whitespace from frequently used
> headers makes a big difference.  I have a script somewhere that
> removes all comments and non-syntactically-significant whitespace from
> /usr/include.

This is not very good way to go, as comments in include files are often very
handy when there is no or incomplete documentation on corresponding APIs.

-Maxim


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?3B53E225.1D5D0E4F>