code: plan9front

Download patch

ref: 1787a8b990236e27d4487ea5ea6e9623b7106b1d
parent: 76ed42e31ff3297f1ca9b144ccc9466b0074f92b
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Jan 5 14:37:26 EST 2021

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.

--- a/sys/src/cmd/acid/acid.h
+++ b/sys/src/cmd/acid/acid.h
@@ -3,7 +3,7 @@
 {
 	Eof		= -1,
 	Strsize		= 4096,
-	Hashsize	= 128,
+	Hashsize	= 32768,
 	Maxarg		= 512,
 	NFD		= 100,
 	Maxproc		= 50,