diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2001-06-12 22:44:23 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2001-06-12 22:44:23 +0000 |
commit | 395422579eb5847088f69f0738e440c59121acee (patch) | |
tree | f3c9638087d12301ecdbb72176b293958468d398 /usr.bin/make/stats.c | |
parent | 8c734cda9eefa10d096cdf0eab3c05304f7d58a0 (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.c')
-rw-r--r-- | usr.bin/make/stats.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/make/stats.c b/usr.bin/make/stats.c index 3e72a330db3..3fc53919411 100644 --- a/usr.bin/make/stats.c +++ b/usr.bin/make/stats.c @@ -1,5 +1,5 @@ /* $OpenPackages$ */ -/* $OpenBSD: stats.c,v 1.4 2001/06/05 11:59:54 espie Exp $ */ +/* $OpenBSD: stats.c,v 1.5 2001/06/12 22:44:22 espie Exp $ */ /* * Copyright (c) 1999 Marc Espie. @@ -124,6 +124,9 @@ print_stats() (float)STAT_HASH_POSITIVE/STAT_HASH_LOOKUP, (float)STAT_HASH_ENTRIES/STAT_HASH_SIZE); #endif +#ifdef STATS_GROW + fprintf(stderr, "Grow: %f\n", average_runs(STAT_GROWARRAY)); +#endif if (mmapped) munmap(statarray, STAT_NUMBER * sizeof(unsigned long)); } |