From: Dale Weiler Date: Fri, 26 Jul 2013 14:50:37 +0000 (+0000) Subject: There was too many 16-sized buckets when compiling xonotic, increase the size: this... X-Git-Tag: v0.3.0~71 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=44d5481828774c304b9cc926e4c05af745f5bca4;p=xonotic%2Fgmqcc.git There was too many 16-sized buckets when compiling xonotic, increase the size: this is cheaper on memory and slightly faster. --- diff --git a/main.c b/main.c index feb8aa3..6029d6d 100644 --- a/main.c +++ b/main.c @@ -198,6 +198,7 @@ static bool options_parse(int argc, char **argv) { opts_set(opts.warn, WARN_BREAKDEF, true); OPTS_OPTION_U32(OPTION_STANDARD) = COMPILER_FTEQCC; + OPTS_OPTION_BOOL(OPTION_STATISTICS) = true; } else if (!strcmp(argarg, "qccx")) { diff --git a/parser.c b/parser.c index c9f093f..159c7c9 100644 --- a/parser.c +++ b/parser.c @@ -31,8 +31,8 @@ /* beginning of locals */ #define PARSER_HT_LOCALS 2 -#define PARSER_HT_SIZE 128 -#define TYPEDEF_HT_SIZE 16 +#define PARSER_HT_SIZE 512 +#define TYPEDEF_HT_SIZE 512 typedef struct parser_s { lex_file *lex;