summary refs log tree commit diff
path: root/tools/lexh.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2017-01-04 15:02:07 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2017-01-04 15:02:07 -0500
commitb976b2da5c88eed0c47bfbe2cf457330bcb93fa3 (patch)
tree523e6c7e2b0713a9853b680aaf76286727f94c6a /tools/lexh.c
parent391b79fcbdae2d1e2fc6ad77e4fadee357759314 (diff)
downloadroux-b976b2da5c88eed0c47bfbe2cf457330bcb93fa3.tar.gz
more performance improvements in the parser
Diffstat (limited to 'tools/lexh.c')
-rw-r--r--tools/lexh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lexh.c b/tools/lexh.c
index a8d8763..a4ca937 100644
--- a/tools/lexh.c
+++ b/tools/lexh.c
@@ -42,7 +42,7 @@ hash(char *s)
 
 	h = 0;
 	for (; *s; ++s)
-		h = *s + 5*h;
+		h = *s + 17*h;
 	return h;
 }