From 1787a8b990236e27d4487ea5ea6e9623b7106b1d Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Tue, 5 Jan 2021 19:37:26 -0800 Subject: [PATCH] acid: increase hash size (thanks jonas.amoson) when loading large binaries such as netsurf, with many symbols, our hash table fills up with collisions and loading the symbol table gets very slow. Bumping it up drops the time to lstk() in acid on netsurf from 4 minutes to 8 seconds. --- sys/src/cmd/acid/acid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/acid/acid.h b/sys/src/cmd/acid/acid.h index 1938f5471..74aceeabe 100644 --- a/sys/src/cmd/acid/acid.h +++ b/sys/src/cmd/acid/acid.h @@ -3,7 +3,7 @@ enum { Eof = -1, Strsize = 4096, - Hashsize = 128, + Hashsize = 32768, Maxarg = 512, NFD = 100, Maxproc = 50,