cURL / Mailing Lists / curl-library / Single Mail


Re: [PATCH v3] rawstr: Speed up Curl_raw_toupper by 40%

From: Daniel Stenberg <>
Date: Mon, 2 Nov 2015 22:50:31 +0100 (CET)

On Mon, 2 Nov 2015, Lauri Kasanen wrote:

> Rationale: when starting up a curl-using app, all cookies from the jar are
> checked against each other. This was causing a two-second startup delay in
> the Fifth browser.

Thanks for alerting us about this!

I found this case so intersting I ran my own test. I ran the function over
500MB of data from /dev/urandom and on this test data I could see a slightly
better than 40% performance gain (with gcc -O3 on my 3.5GHz Intel i7 CPU).

Still: "This was causing a two-second startup delay" seems unlikely. I could
run the unoptimized version through 500MB of data in 1.5 seconds, and surely
any sensible cookie use cases would be several magnitudes away of that?

List admin:
Received on 2015-11-02