GNU bug report logs - #28704
27.0.50; Sorting packages list slow when using display-line-numbers-type visual

Previous Next

Package: emacs;

Reported by: Joseph Garvin <joe.garvin <at> radix-trading.com>

Date: Wed, 4 Oct 2017 16:26:02 UTC

Severity: normal

Found in version 27.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 28704 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Joseph Garvin <joe.garvin <at> radix-trading.com>, 28704 <at> debbugs.gnu.org
Subject: Re: bug#28704: 27.0.50;
 Sorting packages list slow when using display-line-numbers-type visual
Date: Thu, 05 Oct 2017 10:09:25 +0200
> Then run: M-x list-packages
>
> Then click on one of the column headers to trigger sorting by that
> column, e.g. Status. Emacs will freeze for a couple of minutes.
>
> Profiler reveals:
>
> - command-execute                                               25144  98%
>   - call-interactively                                           25144  98%
>    - funcall-interactively                                       25144  98%
>     - tabulated-list-col-sort                                    24960  97%
>      - tabulated-list--sort-by-column-name                       24960  97%
>       - tabulated-list-print                                     24956  97%
>        - apply                                                   24916  97%
>         - tabulated-list-print-entry                             24903  97%
>          - tabulated-list-line-number-width                      24736  96%
>             #<compiled 0x2a38871>                                    2   0%
>
> So it looks like all of the time is spent inside tabulated-list-line-number-width.

‘tabulated-list-print’ should calculate ‘line-number-display-width’ once
and ‘tabulated-list-line-number-width’ should use that value.

martin





This bug report was last modified 7 years and 236 days ago.

Previous Next


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