From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21473: 24.5; very slow tooltip display to sort-of-slow remote display Date: Tue, 15 Sep 2015 17:32:07 +0300 Message-ID: <8337yf92jc.fsf@gnu.org> References: <9F31D581-6B5A-42B7-8031-6920089AFFF4@permabit.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1442327603 574 80.91.229.3 (15 Sep 2015 14:33:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Sep 2015 14:33:23 +0000 (UTC) Cc: 21473@debbugs.gnu.org To: Ken Raeburn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 15 16:33:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZbrIC-0002w1-Je for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Sep 2015 16:33:08 +0200 Original-Received: from localhost ([::1]:43345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbrIC-0000Yv-2r for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Sep 2015 10:33:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbrI8-0000Ym-M7 for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2015 10:33:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbrI5-0000lb-Sw for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2015 10:33:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbrI5-0000lX-QQ for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2015 10:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZbrI5-00083B-Jg for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2015 10:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Sep 2015 14:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21473 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21473-submit@debbugs.gnu.org id=B21473.144232753130840 (code B ref 21473); Tue, 15 Sep 2015 14:33:01 +0000 Original-Received: (at 21473) by debbugs.gnu.org; 15 Sep 2015 14:32:11 +0000 Original-Received: from localhost ([127.0.0.1]:33363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZbrHG-00081L-Nr for submit@debbugs.gnu.org; Tue, 15 Sep 2015 10:32:11 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:60950) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZbrHE-000819-2i for 21473@debbugs.gnu.org; Tue, 15 Sep 2015 10:32:09 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NUQ00K002X52B00@a-mtaout21.012.net.il> for 21473@debbugs.gnu.org; Tue, 15 Sep 2015 17:32:06 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NUQ00JKM31IZF70@a-mtaout21.012.net.il>; Tue, 15 Sep 2015 17:32:06 +0300 (IDT) In-reply-to: <9F31D581-6B5A-42B7-8031-6920089AFFF4@permabit.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106593 Archived-At: > From: Ken Raeburn > Date: Mon, 14 Sep 2015 04:13:41 -0400 > > I’ve noticed that when I’m using a “slow” network link — high bandwidth but a round-trip time of 30-40 milliseconds (remember when that was fast?) — the tooltip window that pops up when I move the mouse, say, over the buffer name in the mode line, takes much longer to come up than when I’m running Emacs on a local display. And if I keep moving the mouse around, I’m likely to get the tooltip for the buffer-name part of the mode line, but displayed somewhere else entirely, depending where the mouse has moved to. > > Based on some earlier investigations, I used gdb to look at calls to _XReply in the Xlib library; this is the routine that flushes the outgoing buffer to the X server and then waits for a response, which contains color info or font info or whatever else is wanted by the caller. It’s of interest because each such call is going to require a round trip to the X server, and on a connection like mine, will add 30ms of delay that cannot be removed without eliminating some of the synchronous Xlib calls — e.g., fewer font queries or whatever. Of course they can’t all be removed, but if some are pointless or redundant we may be able to reduce the time spent waiting. Is there something new in what you discovered, given the fact that a tooltip is just a special kind of frame, and so everything that you reported which causes slow creation of a new frame pertains also to tooltips? Thanks.