summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Gramner <henrik at gramner.com>2014-01-16 23:37:11 +0100
committerHenrik Gramner <henrik@gramner.com>2014-01-21 00:24:40 +0100
commite32ff2c2abc22532a58c9b687d922500d23fd709 (patch)
tree2216188fe250928bb0dd3d4350d8f676d6f76338
parent87c09baff80ca5bbe938392d8f320e621707f317 (diff)
downloadyasm-e32ff2c2abc22532a58c9b687d922500d23fd709.tar.gz
Use a larger hash table size
Increases compilation speed of files with a large number of macros by around 20x.
-rw-r--r--modules/preprocs/nasm/nasm-pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/preprocs/nasm/nasm-pp.c b/modules/preprocs/nasm/nasm-pp.c
index 06eaa9ab..27a8cc6c 100644
--- a/modules/preprocs/nasm/nasm-pp.c
+++ b/modules/preprocs/nasm/nasm-pp.c
@@ -366,7 +366,7 @@ static ListGen *list;
* FIXME: We should *really* be able to configure this at run time,
* or even have the hash table automatically expanding when necessary.
*/
-#define NHASH 31
+#define NHASH 4096
/*
* The current set of multi-line macros we have defined.