curl-library
curl_multi vs. curl_easy threads
Date: Fri, 5 Dec 2014 09:40:29 -0800
The answer is probably so obvious I shouldn't need to ask, but here goes ...
I have a need to upload 10 files. For performance I want to upload them
"concurrently", so I can think of two strategies:
1) Create 10 threads, each uploading with a curl_easy.
2) Use curl_multi with 10 curl_easy requests
Note that each file has already been opened so each one's READCALLBACK
shouldn't have to wait for anything to read from its input stream.
Which of the two should yield better performance? Is there another scheme
that might work even better? Note that in general there may be many more
than 10 files, so I am limited in threads and/or file descriptors.
Thanks.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-12-05