diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-03-13 16:13:56 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-03-16 23:45:59 +0100 |
commit | 7f9ce0851a194dc725603993707342b7e158174e (patch) | |
tree | 7cdf08ad9f30631db8b263944366a3d2243b6ea4 /lib/multiif.h | |
parent | 2404aa080e1cc62634b44091f58737d2c618e361 (diff) | |
download | curl-7f9ce0851a194dc725603993707342b7e158174e.tar.gz |
multi: improved pending transfers handling => improved performance
When a transfer is requested to get done and it is put in the pending
queue when limited by number of connections, total or per-host, libcurl
would previously very aggressively retry *ALL* pending transfers to get
them transferring. That was very time consuming.
By reducing the aggressiveness in how pending are being retried, we
waste MUCH less time on putting transfers back into pending again.
Some test cases got a factor 30(!) speed improvement with this change.
Reported-by: Cyril B
Fixes #2369
Closes #2383
Diffstat (limited to 'lib/multiif.h')
-rw-r--r-- | lib/multiif.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/multiif.h b/lib/multiif.h index b9c722aed..c8fb5ca0d 100644 --- a/lib/multiif.h +++ b/lib/multiif.h @@ -59,8 +59,6 @@ struct Curl_multi *Curl_multi_handle(int hashsize, int chashsize); void Curl_multi_dump(struct Curl_multi *multi); #endif -void Curl_multi_process_pending_handles(struct Curl_multi *multi); - /* Return the value of the CURLMOPT_MAX_HOST_CONNECTIONS option */ size_t Curl_multi_max_host_connections(struct Curl_multi *multi); |