diff options
author | Ori Bernstein <ori@eigenstate.org> | 2021-01-05 19:37:26 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2021-01-05 19:37:26 -0800 |
commit | 1787a8b990236e27d4487ea5ea6e9623b7106b1d (patch) | |
tree | 9a81d219bf8adbd6c804073dcde833d952285dd4 | |
parent | 76ed42e31ff3297f1ca9b144ccc9466b0074f92b (diff) | |
download | plan9front-1787a8b990236e27d4487ea5ea6e9623b7106b1d.tar.xz |
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.
-rw-r--r-- | sys/src/cmd/acid/acid.h | 2 |
1 files changed, 1 insertions, 1 deletions
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, |