Commit 9bccfa6390719b00648d07eb4c795e6efa36cf64

Stefan Sperling 2018-11-05T15:42:42

reduce cache sizes; less memcmp calls during 'got log PATH'

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/lib/object_cache.c b/lib/object_cache.c
index 24b34b5..b38c757 100644
--- a/lib/object_cache.c
+++ b/lib/object_cache.c
@@ -32,9 +32,9 @@
 #include "got_lib_object_idcache.h"
 #include "got_lib_object_cache.h"
 
-#define GOT_OBJECT_CACHE_SIZE_OBJ	1024
+#define GOT_OBJECT_CACHE_SIZE_OBJ	256
 #define GOT_OBJECT_CACHE_SIZE_TREE	2048
-#define GOT_OBJECT_CACHE_SIZE_COMMIT	512
+#define GOT_OBJECT_CACHE_SIZE_COMMIT	64
 
 const struct got_error *
 got_object_cache_init(struct got_object_cache *cache,