[PATCH 1 of 5] parsers: add a function to efficiently lowercase ASCII strings

Siddharth Agarwal sid at less-broken.com
Sat Oct 4 19:01:11 UTC 2014


On 10/04/2014 03:55 AM, Antoine Pitrou wrote:
> Why do you memcpy() first? You could read from str directly inside the
> loop.

Leftover from an earlier attempt. Removing the memcpy results in a 
further 10% speedup. Nice. I'll resend with updated performance numbers.

- Siddharth


>
> Regards
>
> Antoine.
>
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel




More information about the Mercurial-devel mailing list