git: 9front

Download patch

ref: 672b8d4d721b51b182593ca3f0acd0e1989a6070
parent: 5580b1d259905dd07ddb8e77bcbb1d24f9b468cc
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,
--