Subject: CVS commit: src/bin/sh
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 10/02/2004 12:16:54
Module Name:	src
Committed By:	dsl
Date:		Sat Oct  2 12:16:54 UTC 2004

Modified Files:
	src/bin/sh: var.c var.h

Log Message:
Save the length of each variable in the name table so that we can
compare the lengths and then use memcmp() in the search code.
Speeds up one of my scripts by a facter of 2.
Increase the size of the variable hash table.
Cuts down time for script to execute from 60 seconds to 10.
Move variable search into a new function to hide the implementation
from most of the code, new version is slightly smaller than old.


To generate a diff of this commit:
cvs rdiff -r1.34 -r1.35 src/bin/sh/var.c
cvs rdiff -r1.22 -r1.23 src/bin/sh/var.h

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