[PATCH 2 of 2] reachableroots: unroll loop that checks if one of parents is reachable
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Tue Sep 8 20:45:19 UTC 2015
On 08/22/2015 05:53 AM, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1439685037 -32400
> # Sun Aug 16 09:30:37 2015 +0900
> # Node ID 7737721288cbade4ab725ac87d8a57d2a99fa649
> # Parent 32fd293a3f4709841d1e555b9fe3040c086281a3
> reachableroots: unroll loop that checks if one of parents is reachable
>
> The difference is small, but fewer loops should be better in general:
>
> revset #0: 0::tip
> 0) 0.001609
> 1) 0.001510 93%
I'm kinda surprise the compiler is not doing this for us.
--
Pierre-Yves David
More information about the Mercurial-devel
mailing list