cURL / Mailing Lists / curl-library / Single Mail

curl-library

curl_global_init performance

From: Tim Ruehsen <tim.ruehsen_at_gmx.de>
Date: Thu, 29 Aug 2013 10:27:37 +0200

Hi,

comparing wget and curl downloading a simple wegpage (e.g. www.google.de)
shows up that curl has 5-6 times higher impact on CPU. This was on Debian
unstable using
        valgrind --tool=callgrind curl -s www.google.de >index.html
resp.
        valgrind --tool=callgrind wget -s www.google.de

Both tools where compiled using OpenSSL.

It looks like that curl_global_init() initalizes OpenSSL though SSL is not
needed. Kcachegrind show that SSL_load_error_strings() is alone responsible
for nearly 50% impact.

Isn't it possible to only initialize SSL stuff when needed ?

Regards, Tim

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-08-29