From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#10149: Emacs 24 hangs for several minutes with very large c++ files Date: Sat, 02 Nov 2019 00:14:44 +0100 Message-ID: <878sozw5nf.fsf@marxist.se> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="42385"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Alan Mackenzie , 10149@debbugs.gnu.org To: suvayu ali Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 02 00:15:41 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQg8q-000Awm-HS for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Nov 2019 00:15:40 +0100 Original-Received: from localhost ([::1]:43670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQg8o-0008GP-BP for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 19:15:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41622) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQg8H-0008CM-5O for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 19:15:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQg8F-0002wx-Kc for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 19:15:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48691) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQg8F-0002wY-9h; Fri, 01 Nov 2019 19:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQg8E-00069G-Dw; Fri, 01 Nov 2019 19:15:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 01 Nov 2019 23:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10149 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 10149-submit@debbugs.gnu.org id=B10149.157265009823602 (code B ref 10149); Fri, 01 Nov 2019 23:15:02 +0000 Original-Received: (at 10149) by debbugs.gnu.org; 1 Nov 2019 23:14:58 +0000 Original-Received: from localhost ([127.0.0.1]:57512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQg8A-00068b-3e for submit@debbugs.gnu.org; Fri, 01 Nov 2019 19:14:58 -0400 Original-Received: from host.gofardesign.uk ([208.79.239.190]:44138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQg88-00068G-4O for 10149@debbugs.gnu.org; Fri, 01 Nov 2019 19:14:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0LuV/eAiwTq57k61FyETj9UjHpoQPRaONRbqUwoJO9Y=; b=Xh6uVQFArA4h5DQS9xVjwRk2O+ gfXkVDjZh/xkS9QuTa5+MZ8n3u5b0ghFcoIQcRj3FVRFN8ozK8Ab0NJCX4UwPhn3Fn76oY40FK+5Q v7la+wDGbTGgT8SkXD+CmX8dUEv9oAF1HnuaW0WXsKW3ahc91ofVL5UaTGUW6ETD1zZg=; Original-Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:43708 helo=localhost) by host.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iQg7y-0003ax-3T; Fri, 01 Nov 2019 18:14:50 -0500 In-Reply-To: (suvayu ali's message of "Mon, 28 Nov 2011 00:04:18 +0100") X-OutGoing-Spam-Status: No, score=-0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: host.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: host.gofardesign.uk: stefan@marxist.se 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: 209.51.188.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:170708 Archived-At: suvayu ali writes: > Hi Emacs devs, > > I am seeing a weird problem. I have an automatically generated C++ class > for some ntupled data for quick (but dirty) analysis. It has lots of > (~1k) data members. Every time I try to navigate in that file and I > reach the large block of text where the data members are declared[1], > Emacs takes a long time to move the cursor (e.g. with commands like > forward-paragraph or backward-paragraph) and the CPU usage on my > Thinkpad X201 maxes out on one of the 4 logical cores. If I wait long > enough (several minutes), Emacs 24 does manage to move the cursor to the > end of the paragraph. However I don't see this problem with Emacs 23.3.1 > (or vim). > > I can replicate this behaviour with `emacs -Q'. The file that causes the > issue is attached with this email. I am using Emacs from the repo.or.cz > git mirror. > > commit aecaa1ffa122258c0fbc580ccbfad268ea46b89d > Author: Andreas Schwab > Date: Sat Nov 26 10:10:36 2011 +0100 > > * grammars/bovine-grammar.el (bovine--grammar-newstyle-unquote): > Avoid warning about old-style backquote. > > This is how I compile emacs: > > In GNU Emacs 24.0.91.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.7) > of 2011-11-27 on mylaptop.example.com > configured using `configure '--prefix=/opt/emacs-lisp' > '--with-selinux' '--with-imagemagick'' > > Important settings: > value of $LC_ALL: nil > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: en_IN.UTF-8 > value of $XMODIFIERS: @im=ibus > locale-coding-system: utf-8-unix > default enable-multibyte-characters: t > > Since I don't actually get a backtrace, I am not sure what else I can > provide. Please feel free to ask me if you need more information. > > Hope this helps. > > Footnotes: > > [1] The large chunk of commented text in the attached file I do see a significant slowdown in navigating the file once I comment out the block of code. It doesn't hang for several minutes for me, but it takes 5-10 seconds for C-v, M-v depending on where point is. Alan, any comments on this? Best regards, Stefan Kangas