Your message dated Tue, 12 Jan 2021 12:07:22 +0100 with message-id <X/2C6mb/OZy/2261@chou> and subject line Re: Bug#975861: mercurial: after switching to pytohn3.9 it is 3 times as slow has caused the Debian Bug report #975861, regarding mercurial: after switching to pytohn3.9 it is 3 times as slow to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 975861: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975861 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: mercurial Version: 5.5.2-1 Severity: normal Dear maintainer, After the Debian switch to python3.9 by default, mercurial got a lot slower, see the following tests in a small repository: $ time python3.9 /usr/bin/hg status real 0m0.403s user 0m0.391s sys 0m0.012s $ time python3.9 /usr/bin/hg status real 0m0.123s user 0m0.114s sys 0m0.008s Even a simple "hg" command without parameters takes about 0.35 seconds to show the help message. As python3.9 is the default, now all mercurial invocations are slow. Regards, Daniel. -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.9.0-3-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages mercurial depends on: ii libc6 2.31-4 ii mercurial-common 5.5.2-1 ii python3 3.9.0-3 ii ucf 3.0043 Versions of packages mercurial recommends: ii openssh-client 1:8.4p1-2 Versions of packages mercurial suggests: pn kdiff3 | kdiff3-qt | kompare | meld | tkcvs | mgdiff <none> pn qct <none> -- no debconf information
--- End Message ---
--- Begin Message ---On Mon, Jan 11, 2021 at 09:24:42PM -0300, Daniel Serpell wrote: > Hi Julien, > > Sorry for not replying earlier. > > On Fri, Jan 8, 2021 at 1:24 PM Julien Cristau <[email protected]> wrote: > > > > Hi Daniel, > > > [...] > > > > Can you provide the output of running hg status with the --profile > > option, in both the faster and slower cases? > > There is an error in the command above, the fast case was using > "python3.8", the slow case was using "python3.9". I reinstalled > python3.8 to test again, but mercurial did not run with python3.8 > anymore: > Right, you'd probably have to downgrade to the 5.5.2-1 version to be able to run with both 3.8 and 3.9. > -------------------- > $ python3.8 /usr/bin/hg status > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/mercurial/policy.py", line 69, > in _importfrom > fakelocals[modname] = mod = getattr(pkg, modname) > File "/usr/lib/python3/dist-packages/mercurial/pycompat.py", line 303, in w > return f(object, sysstr(name), *args) > AttributeError: module 'mercurial.cext' has no attribute 'parsers' > -------------------- > > But, I can't reproduce the slowdown anymore using current mercurial > and python3.9 versions in unstable, now it is fast again: > [...] > > So, you can close the bug. > Closing with this message, thanks for following up! Cheers, Julien
--- End Message ---

