summaryrefslogtreecommitdiff
path: root/usr.bin/make/stats.h
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-06-12 22:44:23 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-06-12 22:44:23 +0000
commit395422579eb5847088f69f0738e440c59121acee (patch)
treef3c9638087d12301ecdbb72176b293958468d398 /usr.bin/make/stats.h
parent8c734cda9eefa10d096cdf0eab3c05304f7d58a0 (diff)
Replace the most used static lists in make by persistent growable arrays.
5% speed increase on a make build. ok miod@
Diffstat (limited to 'usr.bin/make/stats.h')
-rw-r--r--usr.bin/make/stats.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/make/stats.h b/usr.bin/make/stats.h
index 8de9a120d7e..e6083dbe8b1 100644
--- a/usr.bin/make/stats.h
+++ b/usr.bin/make/stats.h
@@ -1,7 +1,7 @@
#ifndef STAT_H
#define STAT_H
/* $OpenPackages$ */
-/* $OpenBSD: stats.h,v 1.2 2001/05/23 12:34:49 espie Exp $ */
+/* $OpenBSD: stats.h,v 1.3 2001/06/12 22:44:22 espie Exp $ */
/*
* Copyright (c) 1999 Marc Espie.
@@ -35,7 +35,8 @@
#if defined(STATS_VAR_LOOKUP) || \
defined(STATS_GN_CREATION) || \
defined(STATS_BUF) || \
- defined(STATS_HASH)
+ defined(STATS_HASH) || \
+ defined(STATS_GROW)
#define HAS_STATS
#endif
@@ -71,6 +72,7 @@ extern unsigned long *statarray;
#define STAT_VAR_HASH_MAXSIZE statarray[25]
#define STAT_VAR_GHASH_MAXSIZE statarray[26]
#define STAT_VAR_POWER statarray[27]
+#define STAT_GROWARRAY statarray[28]
#define STAT_NUMBER 30