Commit 0a554478f10b435812e7fc28336817616f75979b

Stefan Sperling 2018-06-22T12:17:35

reduce object cache sizes

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/lib/got_lib_repository.h b/lib/got_lib_repository.h
index 5d18ab9..203dd23 100644
--- a/lib/got_lib_repository.h
+++ b/lib/got_lib_repository.h
@@ -17,9 +17,9 @@
 #define GOT_PACKIDX_CACHE_SIZE	64
 #define GOT_PACK_CACHE_SIZE	GOT_PACKIDX_CACHE_SIZE
 
-#define GOT_OBJECT_CACHE_SIZE_OBJ	8192
-#define GOT_OBJECT_CACHE_SIZE_TREE	4096
-#define GOT_OBJECT_CACHE_SIZE_COMMIT	2048
+#define GOT_OBJECT_CACHE_SIZE_OBJ	1024
+#define GOT_OBJECT_CACHE_SIZE_TREE	128
+#define GOT_OBJECT_CACHE_SIZE_COMMIT	512
 
 enum got_object_chache_type {
 	GOT_OBJECT_CACHE_TYPE_OBJ,