From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Joseph Garvin Newsgroups: gmane.emacs.bugs Subject: bug#28704: 27.0.50; Sorting packages list slow when using display-line-numbers-type visual Date: Wed, 04 Oct 2017 11:14:56 -0500 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1507134467 29017 195.159.176.226 (4 Oct 2017 16:27:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 4 Oct 2017 16:27:47 +0000 (UTC) To: 28704@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 04 18:27:42 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzmWK-0006gl-3O for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Oct 2017 18:27:40 +0200 Original-Received: from localhost ([::1]:36063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzmWR-0002xC-1Z for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Oct 2017 12:27:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzmUr-0001mp-1A for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 12:26:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzmUk-0003c4-UX for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 12:26:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40434) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzmUk-0003bS-Mg for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 12:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzmUk-0006Pl-DW for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 12:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Joseph Garvin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Oct 2017 16:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150713433224593 (code B ref -1); Wed, 04 Oct 2017 16:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Oct 2017 16:25:32 +0000 Original-Received: from localhost ([127.0.0.1]:49113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzmUF-0006Ob-IH for submit@debbugs.gnu.org; Wed, 04 Oct 2017 12:25:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzmKL-000695-JW for submit@debbugs.gnu.org; Wed, 04 Oct 2017 12:15:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzmK9-0002BO-2f for submit@debbugs.gnu.org; Wed, 04 Oct 2017 12:15:11 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36512) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dzmK8-0002BK-Vl for submit@debbugs.gnu.org; Wed, 04 Oct 2017 12:15:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzmK6-00032R-HZ for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 12:15:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzmK3-00027E-7i for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 12:15:02 -0400 Original-Received: from mail-it0-x230.google.com ([2607:f8b0:4001:c0b::230]:56114) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzmK3-00026u-0E for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 12:14:59 -0400 Original-Received: by mail-it0-x230.google.com with SMTP id p185so5803680itc.4 for ; Wed, 04 Oct 2017 09:14:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=radix-trading-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version; bh=BddbxXrRxE2JcGK8sC0Bofp9NI00PRGOZQ/T0COj1oo=; b=y8Fp5n32+UQTZ6QL90PW7m/p0b2PY05L6zYqIVuQU+FbC80PAO5rHF72aKoeWhOk38 /+TGoxm6c2wAljucyzSMtXUU34UXSGmxExAASPYoADQ8f+0X6ckLw1RaOFMp0YvGzbWq DjXFbNxzgeF2EgdZpDkdDTIsQeINlh1LgmkxvpPC/SC0BizkYZS7w9aHgEXTwznP3j9b NAJoGYaG3YqWiGsXFUE7/l2Oj2CVl1r2kjHlCXj+a3XwsC7Ifi1BE/QJ3AMDC0s7Eskb y5yRQ3A+QWQRELV+5NMdfwJTzdLrXRSgyAs2GFkvTY1DRXhaTdpct5AP7Xu8mXWzIGbr XkGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=BddbxXrRxE2JcGK8sC0Bofp9NI00PRGOZQ/T0COj1oo=; b=FLnV6mcEgkKKGRUvCiHsA+v4nIlRCQtfgGXFeMWMa40s2wzBXDXpj90LHtRC7L49Up S5eHMpibK306dyBqFq7S4HtdglWeora5OazHxhKPbzaHcEeRhjOzA5DFRyCkBMmiW6um HoJ8l6heO1z17qoXgUyZ8ejLwIImHrJIhM+RS2+bU7SsssiIRUo0puq9oRHLGZmxQBPr jn0UZWqtC406UkbQDX4aHNoxS0tNCqbsioxSkLcv5/9ZDNfU9ujZHpKvvXzXKARR4HwA VgF8yGB2B/PbI8ReR+3QvylayqyhbyKNJy6pVG04eP6kfutzCe1gURsUICR3fES7iidd J5VA== X-Gm-Message-State: AHPjjUjTh+kY+IvTzULH+0/kKz+R2Rc5F5QBpZtyBrGUWUQTVvX6SLX/ s7zgngXYypqGxmUTDWZU7xwSGxlG X-Google-Smtp-Source: AOwi7QC5jizhwuZbxJwF+BBADuAMwCggC67BJDIaTB7BYNw/YJjomhwHswURtPnLGCc+dy4rK3JaEA== X-Received: by 10.36.83.20 with SMTP id n20mr31487161itb.120.1507133697628; Wed, 04 Oct 2017 09:14:57 -0700 (PDT) Original-Received: from rdx-ws-030 ([38.104.242.198]) by smtp.gmail.com with ESMTPSA id b190sm7346244ioe.1.2017.10.04.09.14.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Oct 2017 09:14:56 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Wed, 04 Oct 2017 12:25:30 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137908 Archived-At: Starting with emacs -Q: Evaluate this in the scratch buffer: ;; make the packages list long enough to notice (when (>= emacs-major-version 24) (require 'package) (package-initialize) (setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/") ("marmalade" . "https://marmalade-repo.org/packages/") ("melpa-stable" . "http://stable.melpa.org/packages/") ("melpa" . "https://melpa.org/packages/"))) (when (not (package-installed-p 'use-package)) (package-refresh-contents) (package-install 'use-package))) ;; enable mode to cause the problem (when (>= emacs-major-version 26) (global-display-line-numbers-mode) (setq display-line-numbers-type 'visual)) 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% # 2 0% So it looks like all of the time is spent inside tabulated-list-line-number-width. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.14.13) of 2017-10-03 built on rdx-ws-030 Repository revision: 92045f4546b9708dc9f69954799d211c1f56ff1e Windowing system distributor 'The X.Org Foundation', version 11.0.11702000 System Description: CentOS Linux release 7.3.1611 (Core) Recent messages: No more unseen articles Mark set [4 times] Quit Type "q" in help window to restore its previous buffer, C-M-v to scroll help. nnimap read 0k from imap.gmail.com Saving file /home/jgarvin/.newsrc-dribble... Wrote /home/jgarvin/.newsrc-dribble [2 times] (Saved .newsrc-dribble) Making find-file-hook buffer-local while locally let-bound! Giving new frame mandimus cursor color. [3 times] Configured using: 'configure --prefix=/home/jgarvin/opt --with-x-toolkit=gtk3' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: recentf-mode: t global-subword-mode: t subword-mode: t drag-stuff-global-mode: t drag-stuff-mode: t winpoint-mode: t delete-selection-mode: t global-hl-line-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t helm-mode: t savehist-mode: t save-place-mode: t erc-services-mode: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-global-mode: t smartparens-mode: t global-undo-tree-mode: t undo-tree-mode: t erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-networks-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-match-mode: t erc-netsplit-mode: t erc-hl-nicks-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t projectile-global-mode: t projectile-mode: t diff-auto-refine-mode: t magit-auto-revert-mode: t global-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t helm-autoresize-mode: t override-global-mode: t cl-old-struct-compat-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t global-visual-line-mode: t visual-line-mode: t transient-mark-mode: t hs-minor-mode: t Load-path shadows: None found. Features: (shadow emacsbug helm-command helm-elisp helm-eval edebug eieio-opt speedbar sb-image ezimage dframe help-fns radix-tree qp shr-color rfc2104 cl-print debug mailalias smtpmail sendmail sort gnus-cite smiley mail-extr gnus-async gnus-bcklg nnir winner gnus-ml nndraft nnmh nnfolder utf-7 gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader time cc-mode-expansions cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs vc-git elec-pair cus-edit cus-start cus-load hexl rect md-belt-impl misc paren tramp-cache tramp-sh recentf tree-widget cap-words superword subword drag-stuff winpoint delsel hl-line cyberpunk-theme ...) Memory information: ((conses 16 808014 278796) (symbols 48 65569 8) (miscs 40 345 1483) (strings 32 196288 21363) (string-bytes 1 6314604) (vectors 16 106791) (vector-slots 8 2268095 150701) (floats 8 639 1928) (intervals 56 1103 789) (buffers 992 45) (heap 1024 96654 13947))