Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 63364) by debbugs.gnu.org; 8 May 2023 13:10:43 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 08 09:10:43 2023 Received: from localhost ([127.0.0.1]:39573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pw0dW-0004UJ-NX for submit <at> debbugs.gnu.org; Mon, 08 May 2023 09:10:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1pw0dV-0004U8-6W for 63364 <at> debbugs.gnu.org; Mon, 08 May 2023 09:10:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1pw0dJ-00014h-MO; Mon, 08 May 2023 09:10:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=v3AapJgfBDFteiQp5d3R4EpQiXC2DoQ79lws4oxmzVw=; b=pcjswjhqRHIc9GUCCM6u pTxDy7HjaSvWMPaI/eg+azCqbDCyHNCX/89EE06DvN5T2xabawBOcWOq8NbMcIkbnVSECSfQkBZWJ qgGtRIrcEAn7RQS9BTuWarNHcxGg+J/40fQz7K2MzO7hfG8RbXvKfNlQLF0k4rPhtDgpmO1p3NMcv EEu1VHWLSiIeWCjeBAXxCcRpwd4qm4QGz9i7khV7u1q7m0nR74bynN9d/sjcjU4j+efLdNA9cBP67 3eij18gEQCSr9CZYw+t4nEiOrRuIaRbh5nS7V34UyBVDGYfcQevhSC6CJkL+MdBxlZrOjiIi/0J/x EJKC8XYk/Bga5A==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1pw0d0-0002MK-3r; Mon, 08 May 2023 09:10:12 -0400 Date: Mon, 08 May 2023 16:11:10 +0300 Message-Id: <83cz3bc6j5.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Tobias Bading <tbading@HIDDEN> In-Reply-To: <450f7551-cdeb-0b51-a2e7-49dc3640ed82@HIDDEN> (message from Tobias Bading on Mon, 8 May 2023 10:15:33 +0200) Subject: Re: bug#63364: (man "gcc") very slow References: <450f7551-cdeb-0b51-a2e7-49dc3640ed82@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63364 Cc: 63364 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Mon, 8 May 2023 10:15:33 +0200 > From: Tobias Bading <tbading@HIDDEN> > > With emacs-29 branch 7133784303 or master 31a66dc891: > > 1. emacs -Q > > 2. M-x man RET gcc RET > > Emacs 29 and 30 both need almost 30 seconds to fully display this man page > on my machine (18714 lines, gcc-9, 2021-06-01). Emacs 26.3 needs about 2 > seconds. (All tests done after “sudo cpupower frequency-set --max 3.5GHz”.) > > According to “perf top -g”, rpl_re_search_2 and re_match_2_internal are > heavily involved. I think this is the price of fixing bugs with fontification/cleanup of the man pages, which we installed in Emacs 27; see bug#36927. Since the text of the man page is received from the background formatter in chunks of arbitrary size, we cannot fontify/cleanup each chunk separately, because that will miss some patterns we want to process. So whenever a chunk is received, we always go to the beginning of the section, and start fontifying from there. And the GCC man page basically has one huge OPTIONS section and very little else. So each time we receive one more chunk, we go back to the beginning of OPTIONS and restart anew. If someone has ideas for how to go back to a closer place without missing some roff markup that got divided between chunks, patches are welcome. OTOH, we don't really want to encourage use of man pages...
bug-gnu-emacs@HIDDEN
:bug#63364
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 8 May 2023 08:15:47 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 08 04:15:47 2023 Received: from localhost ([127.0.0.1]:39063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pvw26-0001Dg-LB for submit <at> debbugs.gnu.org; Mon, 08 May 2023 04:15:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:39430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <tbading@HIDDEN>) id 1pvw25-0001DV-2w for submit <at> debbugs.gnu.org; Mon, 08 May 2023 04:15:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tbading@HIDDEN>) id 1pvw21-0003NG-Fr for bug-gnu-emacs@HIDDEN; Mon, 08 May 2023 04:15:41 -0400 Received: from mout.web.de ([212.227.17.11]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tbading@HIDDEN>) id 1pvw1x-0006xC-88 for bug-gnu-emacs@HIDDEN; Mon, 08 May 2023 04:15:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1683533734; i=tbading@HIDDEN; bh=2Mz2vz+crvYQ3ztlvaNYmBLlouvJZjOdHSL0kLwXL9k=; h=X-UI-Sender-Class:Date:To:From:Subject; b=UVAeWVS+5m2CSRS5c97R0g80sHkpk51+ZcbgK7HKxh1HfOnPqmHb6kCFDGStxGDfw rPXWScSE+SPPcdOD/hc6wuPZExeuKeyzxcmhPc8e8Cz9OEarRmGP1Nvd2DkaYurGWW qnkKjljtOzFAX2UagdadIVqOanSX9XbEXW17YlbyDVmKzPNYalUMqvoSqecQMVFmdV AFp5ydHM31moqVuo9TO/QLBtKaP6Br5Pqt/Ow0qdxJKpO6WJyIL3Waj3sRWusYWdRu wPBnJjszZj/STaPlEkl04DhZOnsRvlDDA/wo9SCWEJTS7pmT0Ucy8n9y8IkseZMhca UisqomlrbKJgg== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.2.103] ([84.143.147.50]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MZSFY-1pkQmh42VC-00WVRs for <bug-gnu-emacs@HIDDEN>; Mon, 08 May 2023 10:15:34 +0200 Message-ID: <450f7551-cdeb-0b51-a2e7-49dc3640ed82@HIDDEN> Date: Mon, 8 May 2023 10:15:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Content-Language: en-US To: bug-gnu-emacs@HIDDEN From: Tobias Bading <tbading@HIDDEN> Subject: (man "gcc") very slow Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:6cxxNjwsRshAB77FRnRCg3hbdld2hPJ0GgZcZ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yDG YNS8FfwL9U9Wr8m83D/2VVKmvJP1+VEralYt/4HCbZYhjNDvRMfWw4WX511rDfQ/WYOVXHtGz d4T2XBWZCUlBAqrMsUK5s5m6IXRsoABomnBwDZYj3lBPwXqp7i+03NFx0CXpyZ5flHjc0vIfK S9P6Pg== Received-SPF: pass client-ip=212.227.17.11; envelope-from=tbading@HIDDEN; helo=mout.web.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) With emacs-29 branch 7133784303 or master 31a66dc891: 1. emacs -Q 2. M-x man RET gcc RET Emacs 29 and 30 both need almost 30 seconds to fully display this man page on my machine (18714 lines, gcc-9, 2021-06-01). Emacs 26.3 needs about 2 seconds. (All tests done after =E2=80=9Csudo cpupower frequency-set --max = 3.5GHz=E2=80=9D.) According to =E2=80=9Cperf top -g=E2=80=9D, rpl_re_search_2 and re_match_2= _internal are heavily involved. =2D-- In GNU Emacs 29.0.90 (build 3, x86_64-pc-linux-gnu, GTK+ Version =C2=A03.24.20, cairo version 1.16.0) of 2023-05-08 built on omega Repository revision: 71337843036d6a6b53aedcf898febd1b591b5f41 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Ubuntu 20.04.6 LTS Configured using: =C2=A0'configure --with-modules --with-imagemagick --without-tree-sitter' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ IMAGEMAGICK JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: =C2=A0 value of $LC_COLLATE: C.UTF-8 =C2=A0 value of $LC_MONETARY: de_DE.UTF-8 =C2=A0 value of $LC_NUMERIC: de_DE.UTF-8 =C2=A0 value of $LC_TIME: de_DE.UTF-8 =C2=A0 value of $LANG: C.UTF-8 =C2=A0 locale-coding-system: utf-8-unix Major mode: Man Minor modes in effect: =C2=A0 tooltip-mode: t =C2=A0 global-eldoc-mode: t =C2=A0 show-paren-mode: t =C2=A0 electric-indent-mode: t =C2=A0 mouse-wheel-mode: t =C2=A0 tool-bar-mode: t =C2=A0 menu-bar-mode: t =C2=A0 file-name-shadow-mode: t =C2=A0 global-font-lock-mode: t =C2=A0 font-lock-mode: t =C2=A0 blink-cursor-mode: t =C2=A0 buffer-read-only: t =C2=A0 line-number-mode: t =C2=A0 indent-tabs-mode: t =C2=A0 transient-mark-mode: t =C2=A0 auto-composition-mode: t =C2=A0 auto-encryption-mode: t =C2=A0 auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tabify cl-seq imenu man cl-loaddefs cl-lib ansi-color rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 330857 10339) =C2=A0(symbols 48 5616 0) =C2=A0(strings 32 14327 1855) =C2=A0(string-bytes 1 410345) =C2=A0(vectors 16 10104) =C2=A0(vector-slots 8 165652 21107) =C2=A0(floats 8 33 49) =C2=A0(intervals 56 158501 0) =C2=A0(buffers 976 11))
Tobias Bading <tbading@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#63364
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.