From df56b69060d8d866f67b6f13029ed7e121d8c5e9 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 29 Sep 2014 22:46:13 +0900 Subject: [PATCH] nghttp2_map: Use initial size 256 so that we don't resize it until 100 streams --- lib/nghttp2_map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/nghttp2_map.c b/lib/nghttp2_map.c index 9197ba4f..212828fe 100644 --- a/lib/nghttp2_map.c +++ b/lib/nghttp2_map.c @@ -26,7 +26,7 @@ #include -#define INITIAL_TABLE_LENGTH 16 +#define INITIAL_TABLE_LENGTH 256 int nghttp2_map_init(nghttp2_map *map) { @@ -138,6 +138,7 @@ static int resize(nghttp2_map *map, size_t new_tablelen) free(map->table); map->tablelen = new_tablelen; map->table = new_table; + return 0; }