all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 36183@debbugs.gnu.org, Eduardo Duenez <e_duenez@hotmail.com>
Subject: bug#36183: 26.1; prettify-symbols-mode high CPU usage in Windows 10
Date: Wed, 19 Jun 2019 19:11:20 +0200	[thread overview]
Message-ID: <871rzplcuf.fsf@gnu.org> (raw)
In-Reply-To: <83h88rw8jw.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 15 Jun 2019 11:34:59 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Eduardo Duenez <e_duenez@hotmail.com>
>> 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





  reply	other threads:[~2019-06-19 17:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-12 17:52 bug#36183: 26.1; prettify-symbols-mode high CPU usage in Windows 10 Eduardo Duenez
2019-06-15  8:34 ` Eli Zaretskii
2019-06-19 17:11   ` Tassilo Horn [this message]
2019-09-25 14:41     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871rzplcuf.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=36183@debbugs.gnu.org \
    --cc=e_duenez@hotmail.com \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.