ref: 22cf5562fae445333c83d7d562156943dbe1716b
parent: a99b0166432f1773ae50811c34d43f0c19ab2fa5
author: Ori Bernstein <[email protected]>
date: Wed Oct 18 16:48:38 EDT 2023
git/*: reduce object cache size the cache is too big; it doesn't measurably improve performance for most uses, and will run out of memory on smaller machines. 128 megs ought to be enough for everybody.
--- a/sys/src/cmd/git/pack.c
+++ b/sys/src/cmd/git/pack.c
@@ -66,7 +66,7 @@
Object *lruhead;
Object *lrutail;
vlong ncache;
-vlong cachemax = 1024*MiB;
+vlong cachemax = 128*MiB;
Packf *packf;
int npackf;
int openpacks;