From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Olivier Scalbert Newsgroups: gmane.emacs.bugs Subject: bug#42490: Emacs is very slow when navigating into a specific C++ file Date: Thu, 23 Jul 2020 09:45:18 +0200 Message-ID: <11f564eb-74f1-980b-53e3-2de64abe62e0@algosyn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22280"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: 42490@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 23 13:00:23 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jyYxa-0005f0-8x for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Jul 2020 13:00:22 +0200 Original-Received: from localhost ([::1]:38434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyYxZ-0004E8-A4 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Jul 2020 07:00:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyYxH-0004CT-Ur for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2020 07:00:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60850) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jyYxG-00032v-V8 for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2020 07:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jyYxG-0001N0-Ru for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2020 07:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Olivier Scalbert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Jul 2020 11:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42490 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15955019435159 (code B ref -1); Thu, 23 Jul 2020 11:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Jul 2020 10:59:03 +0000 Original-Received: from localhost ([127.0.0.1]:44160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyYwJ-0001L6-28 for submit@debbugs.gnu.org; Thu, 23 Jul 2020 06:59:03 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyVuz-0004oQ-0E for submit@debbugs.gnu.org; Thu, 23 Jul 2020 03:45:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyVuy-00023c-K0 for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2020 03:45:28 -0400 Original-Received: from maverick.wznoc.com ([67.222.128.248]:35464) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyVuv-0002dT-OT for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2020 03:45:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=algosyn.com ; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Message-ID:From:Subject:To:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tfLn8Cv0nN+VTbGiTLLLfLE+Ejs8eaVZ/+xYuuVEpg4=; b=Q8oyn7uKoNnTn+9v4l64jfv8Tk mKOPypb+LdCuQJapiIt3+YE7MwGA+qluAfGwmqH9ruFNM6haezfh2heNoaGJzaHSXfqhm23dkYogi VsKOL+n+hwZ1T1sCceUxi9T8SSNjpb+blRt1dNmRWEv+rK8lckciBJMBM7YlkuEn1DlT5HSnrWD3U VaOsyxivG/1FJ7jfsUPvkjVDWcBBcmYI/21rT1Upm3nEv75GVG8NpWKkcmWlXdFfaZXtTlSsaKUWn 15Pv79hJp1iMTUVBmnHLBpusBAH35CAq2+x1nnWFSiJjyt8Mv3Qz2wv0gc7Ww9sKJ4Mrvcah5r4+n c31zyF7Q==; Original-Received: from [109.130.219.96] (port=53336 helo=[192.168.1.59]) by maverick.wznoc.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1jyVur-0006LP-7q for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2020 02:45:21 -0500 Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - maverick.wznoc.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - algosyn.com X-Get-Message-Sender-Via: maverick.wznoc.com: authenticated_id: olivier.scalbert@algosyn.com X-Authenticated-Sender: maverick.wznoc.com: olivier.scalbert@algosyn.com Received-SPF: pass client-ip=67.222.128.248; envelope-from=olivier.scalbert@algosyn.com; helo=maverick.wznoc.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/23 03:45:22 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 23 Jul 2020 06:59:01 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:183413 Archived-At: Hi ! With Emacs 26.1 or 26.3 on my Xeon Debian box, I have some problems with the following C++ file: https://github.com/mamedev/mame/blob/master/src/devices/cpu/z80/z80.cpp (which is part of the Mame project). When I open it and press several times the "page down" key, Emacs seems to hang. In fact 100% of the cpu is consumed during 10 to 15 seconds. Then it works well. My Emacs config is nearly empty. The C++ code is a little special as is contains lot of macros, but I can open it and navigate into it without problem with vim or VSCode. If I turn off syntax highlighting, it run smoother. Thanks for the help ! Olivier In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-09-23, modified by Debian built on x86-grnet-01 Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Recent messages: Loading /etc/emacs/site-start.d/50gnugo.el (source)...done Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)... Loading /usr/share/emacs/site-lisp/latex-cjk-common/cjk-enc.el (source)...done Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...done Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...done Loading /etc/emacs/site-start.d/50openscad.el (source)...done Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done Loading /etc/emacs/site-start.d/50texlive-lang-english.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... [2 times] Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-StqULU/emacs-26.1+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/26.1/lisp/textmodes/rst /usr/share/emacs/site-lisp/latex-cjk-thai/thai-word hides /usr/share/emacs/26.1/lisp/language/thai-word Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair solarized-dark-theme solarized color dash finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type 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 elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 282823 12891) (symbols 48 28411 2) (miscs 40 50 76) (strings 32 78429 1210) (string-bytes 1 1842487) (vectors 16 21905) (vector-slots 8 611952 8270) (floats 8 277 315) (intervals 56 282 0) (buffers 992 12))