[PATCH] parse_manifest: rewrite to use memchr

Siddharth Agarwal sid0 at fb.com
Sat Sep 7 22:08:19 CDT 2013


On 09/07/2013 08:07 PM, Siddharth Agarwal wrote:
> memchr is usually smarter than a simple for loop. With gcc 4.4.6 and glibc 2.12
> on x86-64, for a 20 MB, 200,000 file manifest, parse_manifest goes from 0.116
> seconds to 0.095 seconds.

This patch is independent of the series of 6 I sent earlier, but the 
performance measurements are on top of it.


More information about the Mercurial-devel mailing list