From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#36183: 26.1; prettify-symbols-mode high CPU usage in Windows 10 Date: Wed, 19 Jun 2019 19:11:20 +0200 Message-ID: <871rzplcuf.fsf@gnu.org> References: <83h88rw8jw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="176271"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 36183@debbugs.gnu.org, Eduardo Duenez To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 19 19:29:43 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 1hdeOy-000jiG-RL for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Jun 2019 19:29:40 +0200 Original-Received: from localhost ([::1]:40730 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdeOw-0004yt-5w for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Jun 2019 13:29:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42597) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hde85-00070U-8B for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 13:12:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hde84-0005UP-7H for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 13:12:13 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33828) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hde7u-0005PJ-HR for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 13:12:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hde7u-0002hC-8R for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 13:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Jun 2019 17:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36183 X-GNU-PR-Package: emacs Original-Received: via spool by 36183-submit@debbugs.gnu.org id=B36183.156096429710318 (code B ref 36183); Wed, 19 Jun 2019 17:12:02 +0000 Original-Received: (at 36183) by debbugs.gnu.org; 19 Jun 2019 17:11:37 +0000 Original-Received: from localhost ([127.0.0.1]:47372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hde7U-0002gM-T5 for submit@debbugs.gnu.org; Wed, 19 Jun 2019 13:11:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hde7T-0002g6-8F for 36183@debbugs.gnu.org; Wed, 19 Jun 2019 13:11:35 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hde7I-00057B-Ii; Wed, 19 Jun 2019 13:11:24 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:38643) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1hde7H-0006Xd-AO; Wed, 19 Jun 2019 13:11:23 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id E4D6320D0F; Wed, 19 Jun 2019 13:11:22 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 19 Jun 2019 13:11:22 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtddvgdekhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufhffjgfkfgggtgesthdtredttdertdenucfhrhhomhepvfgrshhsihhl ohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucfkphepudefgedrudduledrvd egrdduleehnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgr uhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedvleekqdhtshguhh eppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhmnecuvehluhhsthgvrhfuihiivgep td X-ME-Proxy: Original-Received: from jiffyarch (j289989.servers.jiffybox.net [134.119.24.195]) by mail.messagingengine.com (Postfix) with ESMTPA id E88698005B; Wed, 19 Jun 2019 13:11:21 -0400 (EDT) In-Reply-To: <83h88rw8jw.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 15 Jun 2019 11:34:59 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:160856 Archived-At: Eli Zaretskii writes: >> From: Eduardo Duenez >> Date: Wed, 12 Jun 2019 17:52:23 +0000 >> >> "M-x prettify-symbols-mode" on a .tex buffer (AUCTeX major mode) >> correctly prettifies symbols (Greek letters, math symbols, etc.) >> However, any subsequent editing of the buffer becomes de facto >> impossible because starting to type, moving, etc., results on 100% >> usage of the CPU core emacs is running on for 1-3 seconds. If I >> switch to another buffer or disable prettify-symbols-mode, CPU usage >> eventually drops down to a typical 2%-4% during regular editing. > > Can you please send a sample file where you see this behavior? > > Also, do you need to use AUCTeX for this to happen, or does it happen > even without AUCTeX, by just visiting a .tex file and activating the > prettify-symbols-mode? FWIW, I cannot reproduce that behavior with some arbitrary LaTeX file with auctex 12.1.2 from ELPA or with the stock latex-mode. So either it's something specific with your LaTeX file or your configuration. In addition to what Eli said, it would also be interesting to profile what emacs does during editing and moving point. For that, you could do this: 1. M-x profiler-start RET cpu RET in the problematic LaTeX file. 2. Activate prettify-symbols-mode. 3. Edit and move point so that emacs heats your CPU. 4. M-x profiler-report RET and then M-x profiler-stop RET. Send us the contents of the *CPU-Profiler-Report ...* buffer. Bye, Tassilo