This patches contain a reimplementation of parseindex (only for the RevlogNG format) in C. I have some troubles to get accurate figures for the overall performance gain but it looks like it is up to 10 %, depending on the operation.