From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: window-scroll-functions and performance
Date: Tue, 16 Aug 2011 07:56:23 +0200 [thread overview]
Message-ID: <87d3g5yk54.fsf@gmail.com> (raw)
In-Reply-To: 87ei0mxub1.fsf@gmail.com
Antoine Levitt <antoine.levitt@gmail.com> writes:
> 15/08/11 22:28, Eli Zaretskii
>>> From: Antoine Levitt <antoine.levitt@gmail.com>
>>> Date: Mon, 15 Aug 2011 21:48:00 +0200
>>>
>>> I'm trying to track down the cause of performance issues in erc. One
>>> problem is with erc-scroll-to-bottom. Here's a simple test: emacs -Q,
>>> M-x erc, accept the default, M-x erc-scrolltobottom-mode, C-l to force
>>> scrolltobottom to act, M-x elp-instrument-package erc, press and
>>> maintain "a" for a while, then M-x elp-results. erc-scrolltobottom gets
>>> called a lot, and that causes noticeable slowdowns: display doesn't keep
>>> up with input, and CPU consumption jumps. This gets my emacs to 100% CPU
>>> just inserting text.
>>
>> Does the problem go away if you turn bidi-display-reordering off?
>
> Nope. (though it does reduce CPU usage a bit - from 100% to 85 here)
>
>> Does it go away if you use Emacs 23.3?
>
> No, it's not a new bug.
>
>> If the answer to any of these 2 questions is YES, please try to come
>> up with a reproducible test case that doesn't involve erc, and I will
>> take a look.
>
> There does not seem to be many people using ERC on this list, and
> consequently not a lot of work on it, it's a shame.
Similar to this, scrolling in org buffers is actually very slow
(impossible to use) unless all headers are open.
Turning off bidi solve problem:
(add-hook 'org-mode-hook #'(lambda () (setq bidi-display-reordering
nil)))
--
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
next prev parent reply other threads:[~2011-08-16 5:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-15 19:48 window-scroll-functions and performance Antoine Levitt
2011-08-15 20:28 ` Eli Zaretskii
2011-08-15 21:02 ` Antoine Levitt
2011-08-16 5:56 ` Thierry Volpiatto [this message]
2011-08-16 6:38 ` Eli Zaretskii
2011-08-16 8:03 ` Thierry Volpiatto
2011-08-16 9:12 ` Eli Zaretskii
2011-08-16 6:49 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d3g5yk54.fsf@gmail.com \
--to=thierry.volpiatto@gmail.com \
--cc=emacs-devel@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).