X-Loop: help-debbugs@HIDDEN
Subject: bug#73442: 29.2.50; mouse-fixup-help-message is very slow with a slow X connection
Resent-From: Spencer Baugh <sbaugh@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 23 Sep 2024 15:16:02 +0000
Resent-Message-ID: <handler.73442.B.172710450213830 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 73442
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: 73442 <at> debbugs.gnu.org
Cc: app-emacs-dev@HIDDEN
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.172710450213830
(code B ref -1); Mon, 23 Sep 2024 15:16:02 +0000
Received: (at submit) by debbugs.gnu.org; 23 Sep 2024 15:15:02 +0000
Received: from localhost ([127.0.0.1]:44597 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1sskmE-0003aq-0F
for submit <at> debbugs.gnu.org; Mon, 23 Sep 2024 11:15:02 -0400
Received: from lists.gnu.org ([209.51.188.17]:58812)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <sbaugh@HIDDEN>) id 1sskmA-0003aS-1J
for submit <at> debbugs.gnu.org; Mon, 23 Sep 2024 11:15:00 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <sbaugh@HIDDEN>)
id 1ssklm-0003vW-Jo
for bug-gnu-emacs@HIDDEN; Mon, 23 Sep 2024 11:14:34 -0400
Received: from mxout5.mail.janestreet.com ([64.215.233.18])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <sbaugh@HIDDEN>)
id 1ssklj-0000s3-E0
for bug-gnu-emacs@HIDDEN; Mon, 23 Sep 2024 11:14:34 -0400
From: Spencer Baugh <sbaugh@HIDDEN>
Date: Mon, 23 Sep 2024 11:14:29 -0400
Message-ID: <iery13iv1uy.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com;
s=waixah; t=1727104469;
bh=J9fCkjFo0WUCFUpA6MZ7Mokw7FOi/008Y8dYQkcXdLE=;
h=From:To:Cc:Subject:Date;
b=Jf3LMQS4qB8DP1b/wRB4EcxZsyx3mIAubuDm1MjwfnAa51fjIl+V7p8c9pizlzfTc
0hCv+mFd4QapV6rYL9q9WfnBFEdi3jGysDHDsPOFzyaLeXZO24MHe+nV6K4COdhpyH
5WNvmmjJYqEK9arMNQ2OidGYl0qIlmNQKVnraJYooQM3kiVXQ0w5I9Fp89MIPCwoVT
u9g3MtIv+lbB0zO3XsFV41AB7D3UOQOBStE8/Yn2qHq4kNDQqblV7UcQJ7IG/CxZTA
8Klvwj6sCaj/7++YBWjcrRBwZz/uXXwR50UVn0SaiheDypYsJBJ85x7jX90DUfdg+O
6b739Bzj18Bww==
Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@HIDDEN;
helo=mxout5.mail.janestreet.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,
RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)
I unfortunately don't have a reliable recipe to reproduce this, but:
1. Have a slow X connection, e.g. through ssh -X
2. emacs -Q
3. Move the mouse over links with help messages mentioning mouse-2
4. Experience terrible lag as the mouse moves
I narrowed this down to mouse-fixup-help-message with some profiling,
and (defalias mouse-fixup-help-message #'identity) stops the lag.
I'm not sure why it's so slow. Maybe posn-at-x-y is particularly slow?
In GNU Emacs 29.2.50 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo
version 1.15.12, Xaw scroll bars) of 2024-09-23 built on
igm-qws-u22796a
Repository revision: 340ed90ce4518de238610461047b6c8767ca0cdc
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Rocky Linux 8.10 (Green Obsidian)
Configured using:
'configure --with-x-toolkit=lucid --without-gpm --without-gconf
--without-selinux --without-imagemagick --with-modules --with-gif=no
--with-tree-sitter --with-native-compilation=aot
PKG_CONFIG_PATH=/usr/local/home/garnish/libtree-sitter/0.22.6-1/lib/pkgconfig/'
Configured features:
CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG
SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11
XDBE XIM XINPUT2 XPM LUCID ZLIB
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Spencer Baugh <sbaugh@HIDDEN> Subject: bug#73442: Acknowledgement (29.2.50; mouse-fixup-help-message is very slow with a slow X connection) Message-ID: <handler.73442.B.172710450213830.ack <at> debbugs.gnu.org> References: <iery13iv1uy.fsf@HIDDEN> X-Gnu-PR-Message: ack 73442 X-Gnu-PR-Package: emacs Reply-To: 73442 <at> debbugs.gnu.org Date: Mon, 23 Sep 2024 15:16:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 73442 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 73442: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D73442 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN
Subject: bug#73442: 29.2.50; mouse-fixup-help-message is very slow with a slow X connection
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 23 Sep 2024 16:02:01 +0000
Resent-Message-ID: <handler.73442.B73442.172710727523769 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 73442
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Spencer Baugh <sbaugh@HIDDEN>
Cc: app-emacs-dev@HIDDEN, 73442 <at> debbugs.gnu.org
Received: via spool by 73442-submit <at> debbugs.gnu.org id=B73442.172710727523769
(code B ref 73442); Mon, 23 Sep 2024 16:02:01 +0000
Received: (at 73442) by debbugs.gnu.org; 23 Sep 2024 16:01:15 +0000
Received: from localhost ([127.0.0.1]:44661 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1sslUw-0006BI-Ru
for submit <at> debbugs.gnu.org; Mon, 23 Sep 2024 12:01:15 -0400
Received: from eggs.gnu.org ([209.51.188.92]:55878)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <eliz@HIDDEN>) id 1sslUt-0006B1-KA
for 73442 <at> debbugs.gnu.org; Mon, 23 Sep 2024 12:01:12 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
id 1sslUQ-0006iG-6h; Mon, 23 Sep 2024 12:00:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
mime-version; bh=jDifaeqMUn5USCFN3caAsnYzZMzelwmub4NgWIGgxiM=; b=oK/B5vkzqaJX
k8ZFYxygdrTIxEghIZOFSFXh1QxIlfPunFmGbKV5YwrJxiJtud3cBtp19AGvOIceAroehNOx17n3l
14YIW+IsPFbdtp6B5+3QtjR+xKJlKlJm4e+/sYax030HeZBz0FJOkqlObr2u640Xr3iiV1aYR06f9
fcM+1LBWxhCugOpcyfTnvGmcQhHwWedQ80CQpyyHa76asCtnLTXbhEgZX5WHkR2Ru6aVCT0gghG5S
8gRjk821HfpfhC4/Pbz2sySbGKSqDdzy5Ib7wbjVYc3FAtWG247YtHQYq5Obk5VcLfSqQdBF7N8Ja
O+LgumIqUsWKELdyluQe2w==;
Date: Mon, 23 Sep 2024 19:00:39 +0300
Message-Id: <86frpqfjh4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <iery13iv1uy.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
References: <iery13iv1uy.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)
> Cc: app-emacs-dev@HIDDEN
> Date: Mon, 23 Sep 2024 11:14:29 -0400
> From: Spencer Baugh via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
>
>
> I unfortunately don't have a reliable recipe to reproduce this, but:
>
> 1. Have a slow X connection, e.g. through ssh -X
> 2. emacs -Q
> 3. Move the mouse over links with help messages mentioning mouse-2
> 4. Experience terrible lag as the mouse moves
>
> I narrowed this down to mouse-fixup-help-message with some profiling,
> and (defalias mouse-fixup-help-message #'identity) stops the lag.
>
> I'm not sure why it's so slow. Maybe posn-at-x-y is particularly slow?
Please profile with perf, so we know what part is slow.
Thanks.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.