Commit f73df793baa4ec89bcbfb0fddb9765c4187defc8

Stefan Sperling 2020-01-07T21:02:16

increase tag cache size; makes tog more responsive when many tags exist

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/object_cache.c b/lib/object_cache.c
index 6cfe44e..adc0e66 100644
--- a/lib/object_cache.c
+++ b/lib/object_cache.c
@@ -41,7 +41,7 @@
 #define GOT_OBJECT_CACHE_SIZE_OBJ	256
 #define GOT_OBJECT_CACHE_SIZE_TREE	256
 #define GOT_OBJECT_CACHE_SIZE_COMMIT	64
-#define GOT_OBJECT_CACHE_SIZE_TAG	32
+#define GOT_OBJECT_CACHE_SIZE_TAG	2048
 #define GOT_OBJECT_CACHE_MAX_ELEM_SIZE	1048576	/* 1 MB */
 
 const struct got_error *