From 640296c95de3d1c17bf1d81908f884bac9c8062f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 12 May 2015 09:15:02 +0200 Subject: connection cache: avoid Curl_hash_alloc() ... by using plain structs instead of pointers for the connection cache, we can avoid several dynamic allocations that weren't necessary. --- lib/multihandle.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/multihandle.h') diff --git a/lib/multihandle.h b/lib/multihandle.h index d8b9d8892..2c7305dfd 100644 --- a/lib/multihandle.h +++ b/lib/multihandle.h @@ -22,6 +22,8 @@ * ***************************************************************************/ +#include "conncache.h" + struct Curl_message { /* the 'CURLMsg' is the part that is visible to the external user */ struct CURLMsg extmsg; @@ -99,7 +101,7 @@ struct Curl_multi { bool pipelining_enabled; /* Shared connection cache (bundles)*/ - struct conncache *conn_cache; + struct conncache conn_cache; /* This handle will be used for closing the cached connections in curl_multi_cleanup() */ -- cgit v1.2.3