D985: tersestatus: re-implement the functionality to terse the status

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Sat Oct 14 00:46:02 EDT 2017


durin42 added inline comments.

INLINE COMMENTS

> cmdutil.py:406-408
> +# extracted at module level as it's required each time a file will be added
> +# to dirnode class object below
> +pathsep = pycompat.ossep

Perversely, locals are significantly faster than globals in Python. Not going to block landing this patch on the change, but it *might* show up in a perf* command to cache this locally in the function it's used in.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D985

To: pulkit, #hg-reviewers, dlax
Cc: durin42, dlax, mercurial-devel


More information about the Mercurial-devel mailing list