Commit eb46335738e5919462d311fc6dd3b9ee2c0e16e3

Stefan Sperling 2018-09-11T18:29:31

reduce pack cache size; avoids opening more than 128 fds

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 4d2e819..feabca1 100644
--- a/lib/got_lib_repository.h
+++ b/lib/got_lib_repository.h
@@ -14,7 +14,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#define GOT_PACKIDX_CACHE_SIZE	64
+#define GOT_PACKIDX_CACHE_SIZE	16
 #define GOT_PACK_CACHE_SIZE	GOT_PACKIDX_CACHE_SIZE
 
 struct got_repository {