GNU bug report logs - #73442
29.2.50; mouse-fixup-help-message is very slow with a slow X connection

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Spencer Baugh <sbaugh@HIDDEN>; dated Mon, 23 Sep 2024 15:16:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 73442 <at> debbugs.gnu.org:


Received: (at 73442) by debbugs.gnu.org; 23 Sep 2024 16:01:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 23 12:01:15 2024
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>
To: Spencer Baugh <sbaugh@HIDDEN>
In-Reply-To: <iery13iv1uy.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#73442: 29.2.50;
 mouse-fixup-help-message is very slow with a slow X connection
References: <iery13iv1uy.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 73442
Cc: app-emacs-dev@HIDDEN, 73442 <at> debbugs.gnu.org
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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#73442; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Sep 2024 15:15:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 23 11:15:02 2024
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>
To: bug-gnu-emacs@HIDDEN
Subject: 29.2.50; mouse-fixup-help-message is very slow with a slow X
 connection
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-Debbugs-Envelope-To: submit
Cc: app-emacs-dev@HIDDEN
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




Acknowledgement sent to Spencer Baugh <sbaugh@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#73442; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.