Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/bin/sh



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.




Home | Main Index | Thread Index | Old Index