From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#32175: Terrible performance of c++-mode refontifying Date: Sun, 17 May 2020 17:09:43 +0300 Message-ID: <1f961544-e0bf-40e6-c347-9880a5cbdb51@yandex.ru> References: <32585dd1-ecab-4745-06b0-7a117c57447c@yandex.ru> <592cda77-e000-c082-b8c9-00c1534976c9@yandex.ru> <9cc2ea47-265e-5d7c-2e40-c8339f8dd771@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="17435"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 Cc: 32175@debbugs.gnu.org To: Stefan Kangas , Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 17 16:10:11 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 1jaJzX-0004Qj-1y for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 May 2020 16:10:11 +0200 Original-Received: from localhost ([::1]:44836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaJzW-0000ZE-4n for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 May 2020 10:10:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaJzO-0000W2-Ah for bug-gnu-emacs@gnu.org; Sun, 17 May 2020 10:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60910) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jaJzO-0006Cw-1r for bug-gnu-emacs@gnu.org; Sun, 17 May 2020 10:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jaJzN-0002sS-Tn for bug-gnu-emacs@gnu.org; Sun, 17 May 2020 10:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 May 2020 14:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32175 X-GNU-PR-Package: emacs Original-Received: via spool by 32175-submit@debbugs.gnu.org id=B32175.158972459311042 (code B ref 32175); Sun, 17 May 2020 14:10:01 +0000 Original-Received: (at 32175) by debbugs.gnu.org; 17 May 2020 14:09:53 +0000 Original-Received: from localhost ([127.0.0.1]:44223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaJzF-0002s2-GM for submit@debbugs.gnu.org; Sun, 17 May 2020 10:09:53 -0400 Original-Received: from forward102p.mail.yandex.net ([77.88.28.102]:42980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaJzD-0002rm-Pc for 32175@debbugs.gnu.org; Sun, 17 May 2020 10:09:52 -0400 Original-Received: from mxback6o.mail.yandex.net (mxback6o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::20]) by forward102p.mail.yandex.net (Yandex) with ESMTP id BC6921D41873; Sun, 17 May 2020 17:09:44 +0300 (MSK) Original-Received: from sas2-ee0cb368bd51.qloud-c.yandex.net (sas2-ee0cb368bd51.qloud-c.yandex.net [2a02:6b8:c08:b7a3:0:640:ee0c:b368]) by mxback6o.mail.yandex.net (mxback/Yandex) with ESMTP id DyYz655faP-9iZurl5r; Sun, 17 May 2020 17:09:44 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1589724584; bh=9AUmiJ5DO1TUt1GFA58Wql+e1sIjKJmhaF+87EBnGGI=; h=In-Reply-To:Cc:To:From:Subject:Date:References:Message-ID; b=GWi2JPK39mafZLGktyuVZC3JHRQrt5kEJBpVwfVtOXcDYdVCyIvo7htmtto+2Uh+A FI5WkBC8KbxpNDEcVNxpYCpop2n4HJhOQjT7PENSvkWSbY99kiDOH9WiJBrGThLGq6 IlDYgbKqwzs4YASTzEvZrmkSc4IsqkBNnvjmiIXw= Authentication-Results: mxback6o.mail.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by sas2-ee0cb368bd51.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id xH9qF7aX4V-9hXKmTx5; Sun, 17 May 2020 17:09:43 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) In-Reply-To: <9cc2ea47-265e-5d7c-2e40-c8339f8dd771@yandex.ru> Content-Language: en-GB-large 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:180466 Archived-At: On 5/17/20 5:06 PM, Konstantin Kharlamov wrote: > On 5/17/20 5:01 PM, Stefan Kangas wrote: >> Konstantin Kharlamov writes: >> >>> Thanks! I should note, I haven't seen this problem for a while. But I >>> struggle to say if it's been fixed or is it because hw I work on got >>> more powerful. >> >> Maybe we should just assume it has been fixed then?  It seems to me that >> it's hard to debug without an example file which exhibits this >> behaviour. > > As a reporter, I agree. Should anyone stumble upon this again, I think they should create a new report. > > FTR: the Emacs version I'm currently using is a build from git dated by 13.09.2019 Oh, I figured there's one thing in my current setup I should explicitly mention! It is this: ;; run garbage collection only when idle (setq gc-cons-threshold most-positive-fixnum) (run-with-idle-timer 2 t (lambda () (garbage-collect))) Looking at the original stack, I see GC was taking 14%, so it may or may not be relevant.