Skip to content

Commit e32ff2c

Browse files
Henrik GramnerGramner
authored andcommitted
Use a larger hash table size
Increases compilation speed of files with a large number of macros by around 20x.
1 parent 87c09ba commit e32ff2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/preprocs/nasm/nasm-pp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ static ListGen *list;
366366
* FIXME: We should *really* be able to configure this at run time,
367367
* or even have the hash table automatically expanding when necessary.
368368
*/
369-
#define NHASH 31
369+
#define NHASH 4096
370370

371371
/*
372372
* The current set of multi-line macros we have defined.

0 commit comments

Comments
 (0)