curl-library
Re: [PATCH] rawstr: Speed up Curl_raw_toupper by 40%
From: Frank Gevaerts <frank_at_gevaerts.be>
Date: Mon, 2 Nov 2015 16:30:48 +0100
Date: Mon, 2 Nov 2015 16:30:48 +0100
On Mon, Nov 02, 2015 at 05:09:45PM +0200, Lauri Kasanen wrote:
> + if (in >= 'a' && in <= 'z')
> + return 'A' + in - 'a';
> +
Doesn't this change assume ASCII?
Frank
-- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2015-11-02