Commit cfcf1cbc17e0ba04db86f31e48233e0ef2e9fd6d

Stefan Sperling 2022-05-31T18:49:16

reduce GOT_PACK_CACHE_SIZE to 32, otherwise it uses too many open files found by tracey

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/got_lib_repository.h b/lib/got_lib_repository.h
index 5fb86bb..c75567b 100644
--- a/lib/got_lib_repository.h
+++ b/lib/got_lib_repository.h
@@ -28,7 +28,7 @@
 #define GOT_OBJECTS_PACK_DIR	"objects/pack"
 #define GOT_PACKED_REFS_FILE	"packed-refs"
 
-#define GOT_PACK_CACHE_SIZE	64
+#define GOT_PACK_CACHE_SIZE	32
 
 struct got_packidx_bloom_filter {
 	RB_ENTRY(got_packidx_bloom_filter) entry;