Subject: CVS commit: pkgsrc/mk/check
To: None <pkgsrc-changes@NetBSD.org>
From: Roland Illig <rillig@netbsd.org>
List: pkgsrc-changes
Date: 11/09/2006 14:36:18
Module Name:	pkgsrc
Committed By:	rillig
Date:		Thu Nov  9 14:36:18 UTC 2006

Modified Files:
	pkgsrc/mk/check: check-portability.mk check-portability.sh
Added Files:
	pkgsrc/mk/check: check-portability.awk check-subr.awk

Log Message:
Rewrote check-portability in awk instead of shell, since the shell has a
huge performance problem: When reading files, it calls read(2) for every
single byte. awk instead reads a whole line at a time. For the lang/php5
package, the execution time changed from (7.8 real 4.5 user 3.1 sys) to
(1.6 real 1.5 user 0.4 sys).


To generate a diff of this commit:
cvs rdiff -r0 -r1.1 pkgsrc/mk/check/check-portability.awk \
    pkgsrc/mk/check/check-subr.awk
cvs rdiff -r1.1 -r1.2 pkgsrc/mk/check/check-portability.mk
cvs rdiff -r1.2 -r1.3 pkgsrc/mk/check/check-portability.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.