cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
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?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-11-02