[PATCH RFC] scmutil: 14% speedup in casecollisionauditor

Joshua Redstone joshua.redstone at fb.com
Tue Jul 17 16:22:19 CDT 2012


K, with this improvement, the speedup increase to about 25%.  I'll resend
the diff.
It also includes a bit of extra logic that may not be necessary to detect
if you add the same file twice in the same command.
Currently the code doesn't complain of anything in that case, and the
stuff you'll see preserves that - if we want to.
Josh

On 7/17/12 4:54 PM, "Matt Mackall" <mpm at selenic.com> wrote:

>On Tue, 2012-07-17 at 20:49 +0000, Joshua Redstone wrote:
>> I like it.  In fact, instead of doing the linear search for an existing
>> name during a collision, can we just do a lookup in the dirstate._map
>> directly?
>
>Probably.
>
>-- 
>Mathematics is the supreme nostalgia of our time.
>
>



More information about the Mercurial-devel mailing list