[PATCH 08 of 13] perf: document `perfdirfoldmap`

Pulkit Goyal 7895pulkit at gmail.com
Wed Oct 9 10:19:32 EDT 2019


On Tue, Oct 8, 2019 at 8:45 PM Pierre-Yves David
<pierre-yves.david at ens-lyon.org> wrote:
>
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at octobus.net>
> # Date 1570513758 14400
> #      Tue Oct 08 01:49:18 2019 -0400
> # Node ID 8a6ad5abbf29c925d1b2610714f9e68df1bbc8e1
> # Parent  701f359a9899d1a8b2cafea2aadc1f667dacd385
> # EXP-Topic perf-doc
> # Available At https://bitbucket.org/octobus/mercurial-devel/
> #              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 8a6ad5abbf29
> perf: document `perfdirfoldmap`
>
> diff --git a/contrib/perf.py b/contrib/perf.py
> --- a/contrib/perf.py
> +++ b/contrib/perf.py
> @@ -1163,6 +1163,10 @@ def perfdirstatefoldmap(ui, repo, **opts
>
>  @command(b'perfdirfoldmap', formatteropts)
>  def perfdirfoldmap(ui, repo, **opts):
> +    """benchmap a `dirstate._map.dirfoldmap.get()` request
> +
> +    The dirstate dirfoldmap cache is dropped between every request.
> +    """

Looks like we can merge `perdirfoldmap` and `perfdirstatefoldmap` and
have file and dir as flags.


More information about the Mercurial-devel mailing list