From: Robert Pluim <rpluim@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Po Lu <luangruo@yahoo.com>, 51886@debbugs.gnu.org
Subject: bug#51886: 29.0.50; pixel-scroll-mode garbage collects like crazy
Date: Tue, 16 Nov 2021 14:28:23 +0100 [thread overview]
Message-ID: <875yssnsaw.fsf@gmail.com> (raw)
In-Reply-To: <83v90s1c9v.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 16 Nov 2021 15:05:32 +0200")
>>>>> On Tue, 16 Nov 2021 15:05:32 +0200, Eli Zaretskii <eliz@gnu.org> said:
>> Date: Tue, 16 Nov 2021 15:21:31 +0800
>> From: Po Lu via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>>
>> Starting from `emacs -Q', do M-x pixel-scroll-mode RET, then configure
>> it as follows:
>>
>> (setq pixel-dead-time 0)
>> (setq pixel-resolution-fine-flag 1)
>> (setq garbage-collection-messages t)
>>
>> Then scroll the display with the mouse wheel. It will garbage collect
>> like crazy, leading to a great deal of stuttering (in emacs-28 as well).
>>
>> I want to reuse most of the code in pixel-scroll.el for XInput2 pixel
>> scrolling, but this is holding me back, as the excessive garbage
>> collection makes it completely unusable.
Eli> Did you try to figure out which part of the code produces most of the
Eli> garbage?
I suspect itʼs the bit that counts from k to n by generating a list of
the integers from k to n and then running dolist over that.
As an aside, that code also does a lot of (sit-for 0), which I seem to
remember can trigger redisplay? Perhaps it should only do that when it
really wants to pause.
Robert
--
next prev parent reply other threads:[~2021-11-16 13:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87ee7gwop0.fsf.ref@yahoo.com>
2021-11-16 7:21 ` bug#51886: 29.0.50; pixel-scroll-mode garbage collects like crazy Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-16 13:05 ` Eli Zaretskii
2021-11-16 13:17 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-16 13:37 ` Eli Zaretskii
2021-11-16 13:28 ` Robert Pluim [this message]
2021-11-16 13:38 ` Eli Zaretskii
2021-11-16 13:41 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-16 14:35 ` bug#51886: 29.0.50; pixel-scroll-mode garbage collects like crazy, " Robert Pluim
2022-09-20 15:16 ` Lars Ingebrigtsen
2022-09-21 2:09 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-21 6:37 ` Stefan Kangas
2022-09-21 7:15 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-21 8:55 ` Stefan Kangas
2022-09-21 10:50 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-10 10:59 ` Stefan Kangas
2024-01-10 11:34 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=875yssnsaw.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=51886@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=luangruo@yahoo.com \
/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).