curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: How to use curl -Z (--parallel) effectively?

From: Dan Fandrich via curl-users <curl-users_at_lists.haxx.se>
Date: Tue, 8 Mar 2022 10:23:17 -0800

On Tue, Mar 08, 2022 at 03:18:16PM +0100, jacques granduel via curl-users wrote:
> Does --parallel|-Z replace completely xargs -P x or Gnu Parallel in term of
> performance?

--parallel avoids forking and startup costs of multiple curl
instances, and it avoids context switches and larger cache & RAM requirements
due to switching processes. It also allows reusing network connections and all
the associated connect costs. So, it should be considerably more efficient, but
you can probably saturate your network either way.
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-03-09