From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Duenez Newsgroups: gmane.emacs.bugs Subject: bug#36183: 26.1; prettify-symbols-mode high CPU usage in Windows 10 Date: Wed, 12 Jun 2019 17:52:23 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="78022"; mail-complaints-to="usenet@blaine.gmane.org" To: 36183@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 12 21:17:42 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 1hb8kf-000K7j-62 for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jun 2019 21:17:41 +0200 Original-Received: from localhost ([::1]:34452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hb8ke-0005YD-6C for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jun 2019 15:17:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36376) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hb8kA-00059k-AO for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2019 15:17:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hb8k8-0007sp-BL for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2019 15:17:10 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48763) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hb8k3-0007q1-Ad for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2019 15:17:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hb8k2-0004s8-TU for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2019 15:17:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eduardo Duenez Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Jun 2019 19:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36183 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.156036698218662 (code B ref -1); Wed, 12 Jun 2019 19:17:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jun 2019 19:16:22 +0000 Original-Received: from localhost ([127.0.0.1]:34074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hb8jN-0004qu-Md for submit@debbugs.gnu.org; Wed, 12 Jun 2019 15:16:22 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hb7QU-0000M7-7N for submit@debbugs.gnu.org; Wed, 12 Jun 2019 13:52:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44476) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hb7QP-0007qk-UW for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2019 13:52:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hb7QN-0002fp-IH for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2019 13:52:41 -0400 Original-Received: from mail-oln040092010102.outbound.protection.outlook.com ([40.92.10.102]:43423 helo=NAM04-CO1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hb7QE-0002Xu-Q5 for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2019 13:52:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KWj/g6oiOC8+sd0Hch4xSrnGfhb8Uli0LC16xUNEyDE=; b=EYVEO/SH2unAnxmeb8+3lxVSaB7fq1XM7jP1Sasq3MkSvHZMOtlVMuwe0vZRndLc/yaxBTiQU+TXb0mTVRCQpADy+xxMwSkjsh/V/xJM4CD8VLV5lh8JAwmCV2IGCkQ5cl2QdLX708V9aLwv5aHIZK5CbDgcvXnFZFyCnKU0ySBKf1o8QeM2LAnaME8NcSzjrHB9lr3yWBl56lc0IpNuYJFjhlqLHH5GhC6L+OcJ2auhY25V0ls3Px+9kbY2XSPfhrVET/2dKmubmeExHyummjJy6SlCbDkyXaJVdBU46zxo6rsHBJkrwOcvSZbDIboDZSGnG/fzf5k1br6NXqeHig== Original-Received: from CO1NAM04FT021.eop-NAM04.prod.protection.outlook.com (10.152.90.54) by CO1NAM04HT048.eop-NAM04.prod.protection.outlook.com (10.152.91.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1943.19; Wed, 12 Jun 2019 17:52:23 +0000 Original-Received: from DM6PR16MB2778.namprd16.prod.outlook.com (10.152.90.58) by CO1NAM04FT021.mail.protection.outlook.com (10.152.90.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1987.11 via Frontend Transport; Wed, 12 Jun 2019 17:52:23 +0000 Original-Received: from DM6PR16MB2778.namprd16.prod.outlook.com ([fe80::6451:1263:df2b:76e6]) by DM6PR16MB2778.namprd16.prod.outlook.com ([fe80::6451:1263:df2b:76e6%7]) with mapi id 15.20.1965.017; Wed, 12 Jun 2019 17:52:23 +0000 Thread-Topic: 26.1; prettify-symbols-mode high CPU usage in Windows 10 Thread-Index: AQHVIUc+41t1LSMLx02QAOsJB9Q+hQ== Accept-Language: en-US Content-Language: en-US x-incomingtopheadermarker: OriginalChecksum:4CC92B1153101C6BBB042EA4F9E3D772FBC64AF5CA23A1F0C2F7569260CBF5FD; UpperCasedChecksum:2D79101B8F52D7FBF00B075DE62C956C638617A0DCFBC1293A8B6384156D742D; SizeAsReceived:6544; Count:40 x-tmn: [ZdNE4BtQUwHC51Gn9Ci/e29v+HeN5CJ6] x-ms-publictraffictype: Email x-incomingheadercount: 40 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(5050001)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322404)(2017031323274)(2017031324274)(1601125500)(1603101475)(1701031045); SRVR:CO1NAM04HT048; x-ms-traffictypediagnostic: CO1NAM04HT048: x-microsoft-antispam-message-info: fGhLEoSkh7Ymtx33Vx9P0GNZySDK/HDsjyZoy1O2iGYEyZgvJh+8P6Si+K2jJddYVDE4b/oNyIrIKMJHFBPhcgbX87GVIN/OZflV0kaPxjZhSbgCgiQNL3+yxEreJqggIqsT11ysDvq7/6t3xNDE54Wm3Bv+NaXve7V1EOYTz5xXFsa+IxGEz0zv5MK+58Re X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 27ab57ac-8e18-4344-a04a-08d6ef5eb91e X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jun 2019 17:52:23.0740 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM04HT048 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Mailman-Approved-At: Wed, 12 Jun 2019 15:16:20 -0400 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:160465 Archived-At: "M-x prettify-symbols-mode" on a .tex buffer (AUCTeX major mode)=0A= correctly prettifies symbols (Greek letters, math symbols, etc.)=0A= However, any subsequent editing of the buffer becomes de facto=0A= impossible because starting to type, moving, etc., results on 100%=0A= usage of the CPU core emacs is running on for 1-3 seconds. If I=0A= switch to another buffer or disable prettify-symbols-mode, CPU usage=0A= eventually drops down to a typical 2%-4% during regular editing.=0A= =0A= =0A= In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)=0A= of 2018-05-30 built on CIRROCUMULUS=0A= Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea=0A= Windowing system distributor 'Microsoft Corp.', version 10.0.17763=0A= Recent messages:=0A= Mark saved where search started=0A= ad-Advice-delete-char: Buffer is read-only: # [3 times]=0A= Mark saved where search started [2 times]=0A= Prettify-Symbols mode enabled in current buffer=0A= Creating customization items...=0A= Creating customization items ...done=0A= Resetting customization items...done=0A= Creating customization setup...done=0A= To install your edits, invoke [State] and choose the Set operation=0A= Prettify-Symbols mode disabled in current buffer=0A= =0A= Configured using:=0A= 'configure --without-dbus --host=3Dx86_64-w64-mingw32=0A= --without-compress-install 'CFLAGS=3D-O2 -static -g3''=0A= =0A= Configured features:=0A= XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB=0A= TOOLKIT_SCROLL_BARS THREADS LCMS2=0A= =0A= Important settings:=0A= value of $LANG: ENU=0A= locale-coding-system: cp1252=0A= =0A= Major mode: LaTeX/FMP=0A= =0A= Minor modes in effect:=0A= text-scale-mode: t=0A= TeX-fold-mode: t=0A= reftex-mode: t=0A= flyspell-mode: t=0A= LaTeX-math-mode: t=0A= TeX-PDF-mode: t=0A= global-magit-file-mode: t=0A= diff-auto-refine-mode: t=0A= magit-auto-revert-mode: t=0A= auto-revert-mode: t=0A= global-git-commit-mode: t=0A= pyvenv-mode: t=0A= desktop-save-mode: t=0A= shell-dirtrack-mode: t=0A= outline-minor-mode: t=0A= helm-mode: t=0A= async-bytecomp-package-mode: t=0A= show-paren-mode: t=0A= savehist-mode: t=0A= cl-old-struct-compat-mode: t=0A= tooltip-mode: t=0A= global-eldoc-mode: t=0A= electric-indent-mode: t=0A= mouse-wheel-mode: t=0A= menu-bar-mode: t=0A= file-name-shadow-mode: t=0A= global-font-lock-mode: t=0A= font-lock-mode: t=0A= blink-cursor-mode: t=0A= auto-composition-mode: t=0A= auto-encryption-mode: t=0A= auto-compression-mode: t=0A= size-indication-mode: t=0A= column-number-mode: t=0A= line-number-mode: t=0A= global-visual-line-mode: t=0A= visual-line-mode: t=0A= transient-mark-mode: t=0A= =0A= Load-path shadows:=0A= ~/synchro/emacs.d/site-lisp/smerge-mode hides c:/Program Files/emacs/share/= emacs/26.1/lisp/vc/smerge-mode=0A= ~/synchro/emacs.d/site-lisp/ps-mode hides c:/Program Files/emacs/share/emac= s/26.1/lisp/progmodes/ps-mode=0A= m:/Eduardo/.emacs.d/elpa/auctex-12.1.1/auctex hides m:/Eduardo/synchro/emac= s.d/site-lisp/site-start.d/auctex=0A= =0A= Features:=0A= (shadow sort mail-extr emacsbug sendmail outshine-org-cmds outorg=0A= tar-mode autoload lisp-mnt mm-archive network-stream starttls url-cache=0A= helm-command helm-elisp helm-eval edebug helm-info misearch=0A= multi-isearch face-remap reftex-sel cursor-sensor reftex-ref=0A= reftex-parse reftex-toc bug-reference tex-fold preview prv-emacs tex-buf=0A= reftex-dcr reftex reftex-loaddefs reftex-vars cdlatex texmathp flyspell=0A= ispell font-latex latex latex-flymake tex-ispell tex-style tex tex-mode=0A= latexenc image-file helm-external helm-net xml ffap magit-obsolete=0A= magit-blame magit-stash magit-bisect magit-remote magit-commit=0A= magit-sequence magit-notes magit-worktree magit-tag magit-merge=0A= magit-branch magit-reset magit-collab ghub url-http tls gnutls url-gw=0A= nsm url-auth url url-proxy url-privacy url-expand url-methods=0A= url-history url-cookie url-domsuf url-util mailcap let-alist magit-files=0A= magit-refs magit-status subr-x magit magit-repos magit-apply magit-wip=0A= magit-log magit-diff smerge-mode diff-mode magit-core magit-autorevert=0A= autorevert filenotify magit-process magit-margin magit-mode git-commit=0A= magit-git magit-section magit-utils crm magit-popup log-edit message rmc=0A= puny rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs=0A= mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util=0A= ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader=0A= pcvs-util add-log with-editor winner paredit pp cl-extra yasnippet=0A= highlight-indentation flymake-proc flymake warnings company pcase=0A= help-fns radix-tree help-mode elpy pyvenv elpy-profile elpy-django s=0A= elpy-refactor python tramp-sh json map grep files-x etags xref project=0A= server desktop frameset gnuplot-mode ido ess-toolbar ess-mouse ess-dde=0A= mouseme thingatpt browse-url ess-swv ess-noweb ess-noweb-font-lock-mode=0A= ess-bugs-l ess-sas-d ess-sas-l ess-sas-a ess-stata-mode ess-stata-lang=0A= cc-vars cc-defs make-regexp essd-els ess-sp6w-d ess-sp3-d ess-julia=0A= julia-mode ess-r-mode ess-r-package ess-r-syntax ess-r-completion=0A= ess-roxy essddr ess-rd hideshow ess-s-lang ess-help ess ess-mode=0A= ess-noweb-mode ess-inf ess-tracebug compile tramp tramp-compat=0A= tramp-loaddefs trampver ucs-normalize shell parse-time ess-generics=0A= ess-custom executable ess-compat ess-utils ess-site dired-x dired=0A= dired-loaddefs re-builder org-element avl-tree generator org org-macro=0A= org-footnote org-pcomplete pcomplete org-list org-faces org-entities=0A= noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref=0A= ob-lob ob-table ob-keys ob-exp ob-comint comint ansi-color ring ob-core=0A= ob-eval org-compat org-macs org-loaddefs find-func cal-menu calendar=0A= cal-loaddefs preview-latex helm-mode helm-files helm-buffers helm-tags=0A= helm-locate helm-grep helm-regexp format-spec helm-utils helm-help=0A= helm-types helm easy-mmode helm-source eieio-compat helm-multi-match=0A= helm-lib helm-config helm-easymenu edmacro kmacro async-bytecomp async=0A= advice misc paren savehist avoid solarized-dark-theme solarized dash=0A= cus-edit cus-start cus-load elec-pair color-theme wid-edit cl=0A= color-theme-wombat finder-inf tex-site racket-mode-autoloads rx info=0A= package easymenu epg-config url-handlers url-parse auth-source cl-seq=0A= eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq=0A= byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date=0A= mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks=0A= lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win=0A= w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe=0A= tabulated-list replace newcomment text-mode elisp-mode lisp-mode=0A= prog-mode register page menu-bar rfn-eshadow isearch timer select=0A= scroll-bar mouse jit-lock font-lock syntax facemenu font-core=0A= term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang=0A= vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932=0A= hebrew greek romanian slovak czech european ethiopic indian cyrillic=0A= chinese composite charscript charprop case-table epa-hook jka-cmpr-hook=0A= help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs=0A= button faces cus-face macroexp files text-properties overlay sha1 md5=0A= base64 format env code-pages mule custom widget hashtable-print-readable=0A= backquote w32notify w32 lcms2 multi-tty make-network-process emacs)=0A= =0A= Memory information:=0A= ((conses 16 1292732 154223)=0A= (symbols 56 55950 1)=0A= (miscs 48 2298 2007)=0A= (strings 32 213434 24925)=0A= (string-bytes 1 5953503)=0A= (vectors 16 90622)=0A= (vector-slots 8 2146240 148464)=0A= (floats 8 552 918)=0A= (intervals 56 89660 433)=0A= (buffers 992 53))=0A=