summaryrefslogtreecommitdiff
path: root/usr.bin/make/hash.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-09-14 13:46:46 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-09-14 13:46:46 +0000
commitcc11fcd76306cd4861949984c169afd9d9b1f759 (patch)
treef2811d279907b0c95af6a40754e79cad5e2dc6ce /usr.bin/make/hash.c
parentc4465c8c2691ab013c83c9c05cb5c22c8131bcf7 (diff)
Replace the old hash used to hold file names within a directory with
open hashing. An interesting optimization is that the open hashing interface is more fine-grained, hence we can compute the correct hash value at the start of Dir_FindFile, and reuse it for each hash structure into which we look (the effect is measurable on large directories along with objdir/VPATH). Remove a few unnecessary Lst_Open/Lst_Close that serve no purpose except obfuscating the code. The interface to dir.h changes slightly, hence tedious includes changes...
Diffstat (limited to 'usr.bin/make/hash.c')
0 files changed, 0 insertions, 0 deletions