diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-05-12 09:15:02 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-05-12 09:15:02 +0200 |
commit | 640296c95de3d1c17bf1d81908f884bac9c8062f (patch) | |
tree | bfb1ae2dbf6e40a4bb2c07625b1a863ed8a84979 /lib/url.c | |
parent | c4d6f9163a6b4ae0d2848c1127780f17a4a88810 (diff) | |
download | curl-640296c95de3d1c17bf1d81908f884bac9c8062f.tar.gz |
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.
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2944,7 +2944,7 @@ find_oldest_idle_connection(struct SessionHandle *data) now = Curl_tvnow(); - Curl_hash_start_iterate(bc->hash, &iter); + Curl_hash_start_iterate(&bc->hash, &iter); he = Curl_hash_next_element(&iter); while(he) { |