On Mon, Feb 13, 2017 at 9:29 AM, Simon Farnsworth <simon...@fb.com> wrote:

> +        duration = (util.timer() - starttime) * 1000
> +        key += '_blocked'
> +        self._blockedtimes[key] += duration
>

Could be a one-liner, which will have a tiny but positive impact on perf:

self._blockedtimes[key + '_blocked'] += (util.timer() - starttime) * 1000
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to