GNU bug report logs - #73718
31.0.50; Severe performance issue with Tramp and project-mode-line-format

Previous Next

Package: emacs;

Reported by: Ergus <spacibba <at> aol.com>

Date: Wed, 9 Oct 2024 10:44:01 UTC

Severity: normal

Found in version 31.0.50

Fixed in version 31.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Ergus <spacibba <at> aol.com>
Cc: 73718 <at> debbugs.gnu.org, dgutov <at> yandex.ru
Subject: bug#73718: 31.0.50; Severe performance issue with Tramp and project-mode-line-format
Date: Wed, 09 Oct 2024 15:12:00 +0200
[Message part 1 (text/plain, inline)]
Ergus <spacibba <at> aol.com> writes:

> Hi Dmitry and Michael:

Hi Ergus,

> I enabled the project-mode-line recently and now when I try to open a
> remote file emacs seems frozen forever (minutes in a not so bad
> connection).
>
> I made a profile and it looks like there is some bad interaction between
> project-mode-line and tramp names
>
> The profile report:
>
> 15458  75% - redisplay_internal (C function)
> 15442  75%  - eval
> 15442  75%   - project-mode-line-format
> 15442  75%    - project-current
> 15442  75%     - project--find-in-directory
> 15442  75%      - run-hook-with-args-until-success
> 15442  75%       - project-try-vc
> 15442  75%        - project--value-in-dir
> 15442  75%         - hack-dir-local-variables
> 15442  75%          - #<byte-code-function 8FF>
> 15442  75%           - hack-dir-local--get-variables
> 15442  75%            - dir-locals-find-file
> 14648  71%             - locate-dominating-file
> 14644  71%              - abbreviate-file-name
> 14644  71%               - tramp-file-name-handler
> 14637  71%                - apply
> 14637  71%                 - tramp-sh-file-name-handler
> 14611  71%                  - tramp-handle-insert-file-contents
> 14611  71%                   - file-local-copy
> 14611  71%                    - tramp-file-name-handler
> 14611  71%                     - apply
> 14611  71%                      - tramp-sh-file-name-handler
> 14611  71%                       - tramp-sh-handle-file-local-copy
> 14611  71%                        - tramp-barf-unless-okay
> 14611  71%                         - tramp-send-command-and-check
> 14611  71%                          - tramp-send-command
> 14611  71%                           - tramp-wait-for-output
> 14611  71%                            - tramp-wait-for-regexp
> 14611  71%                             - sit-for
> 14611  71%                              - redisplay_internal (C function)
> 14574  71%                               - eval
> 14574  71%                                - project-mode-line-format

This is unfortune. sit-for should not trigger a redisplay. Does the
appended patch in tramp.el helps?

Best regards, Michael.

> At the moment I disabled the project-mode-line. However There may be
> a better solutions for this issue.
>
> Best,
> Ergus

Best regards, Michael.

[Message part 2 (text/x-patch, attachment)]

This bug report was last modified 216 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.