https://bz.mercurial-scm.org/show_bug.cgi?id=6885

            Bug ID: 6885
           Summary: Summarizing is very slow on large repositories
           Product: Mercurial
           Version: 6.7.4
          Hardware: PC
                OS: NetBSD
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzi...@mercurial-scm.org
          Reporter: mercurial-bugzi...@campbell.mumble.net
                CC: mercurial-de...@mercurial-scm.org
    Python Version: ---

When opening a file, Emacs runs:

hg --config ui.report_untrusted=0 --config alias.status=status --config
defaults.status= status -A <file>
hg --config ui.report_untrusted=0 log -r . -l1 --template "{if(bookmarks,sub('
',',',bookmarks),if(phabdiff,phabdiff,shortest(node,6)))}"

Each of these commands takes over 1sec on the NetBSD src tree on my otherwise
idle laptop with a hot cache (i.e., not the first time I run either command),
with 64 GB RAM and an Intel i7-8650U @ 1.90 GHz, resulting in a noticeable
delay when opening files in Emacs.

If I just want to see what commit I'm at,

hg parent
hg log -r . -l1

take over 4sec each, and

hg summary

takes over 16sec.

Extensions enabled are topic and evolve.  The repository has about 1.1m commits
in it total, but I would hope that the heads at least are indexed so the size
of the history shouldn't matter much and none of these commands should involve
statting all files in the tree like hg status does.

What can be done to make these faster, like `git show' which runs in less than
0.1sec on the same machine on a similar repository?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to