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: Sun, 04 Oct 2015 22:40:10 +0300 Message-ID: <83a8ry1kyt.fsf@gnu.org> References: <9F31D581-6B5A-42B7-8031-6920089AFFF4@permabit.com> <83pp15hdbg.fsf@gnu.org> <59C0A752-87BB-4467-9A3F-DC1E5A278842@permabit.com> <83612wf8pr.fsf@gnu.org> <83si5wbcap.fsf@gnu.org> <6ebnci3o1s.fsf@just-testing.permabit.com> <83oagf0xx5.fsf@gnu.org> <5AFBFA9B-153C-4CFB-8864-BAB733413B11@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 1443987688 13201 80.91.229.3 (4 Oct 2015 19:41:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Oct 2015 19:41:28 +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 Sun Oct 04 21:41:16 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 1Zip9l-00080f-Mh for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Oct 2015 21:41:14 +0200 Original-Received: from localhost ([::1]:43523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zip9j-0002kz-T3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Oct 2015 15:41:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zip9e-0002ki-C3 for bug-gnu-emacs@gnu.org; Sun, 04 Oct 2015 15:41:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zip9b-000351-4Q for bug-gnu-emacs@gnu.org; Sun, 04 Oct 2015 15:41:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zip9b-00034x-19 for bug-gnu-emacs@gnu.org; Sun, 04 Oct 2015 15:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zip9a-0004zb-Oe for bug-gnu-emacs@gnu.org; Sun, 04 Oct 2015 15:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Oct 2015 19:41:02 +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.144398761919135 (code B ref 21473); Sun, 04 Oct 2015 19:41:02 +0000 Original-Received: (at 21473) by debbugs.gnu.org; 4 Oct 2015 19:40:19 +0000 Original-Received: from localhost ([127.0.0.1]:54675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zip8r-0004yY-To for submit@debbugs.gnu.org; Sun, 04 Oct 2015 15:40:18 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:50914) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zip8o-0004yN-9o for 21473@debbugs.gnu.org; Sun, 04 Oct 2015 15:40:15 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NVP00J00NEOPN00@mtaout27.012.net.il> for 21473@debbugs.gnu.org; Sun, 04 Oct 2015 22:36:23 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVP00BMYNSNYRA0@mtaout27.012.net.il>; Sun, 04 Oct 2015 22:36:23 +0300 (IDT) In-reply-to: <5AFBFA9B-153C-4CFB-8864-BAB733413B11@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:107294 Archived-At: > From: Ken Raeburn > Date: Sun, 4 Oct 2015 14:02:18 -0400 > Cc: 21473@debbugs.gnu.org > > >> 5 _XReply « XSync « x_check_errors « x_set_mouse_color « x_set_frame_parameters « x_default_parameter « x_create_tip_frame « Fx_show_tip « Ffuncall « exec_byte_code « funcall_lambda « Ffuncall « exec_byte_code « funcall_lambda « Ffuncall « run_hook_with_args « Ffuncall « exec_byte_code « funcall_lambda « Ffuncall « Fapply « Ffuncall « exec_byte_code « funcall_lambda « Ffuncall « call1 « timer_check_2 « timer_check « readable_events « get_input_pending > > > > Any idea why we need to call > > > > x_default_parameter (f, parms, Qmouse_color, build_string ("black"), > > "pointerColor", "Foreground", RES_TYPE_STRING); > > > > when creating a tip frame? Do we want the tip frames to be able to > > support mouse highlight or something? If so, we could make this > > conditional on some option, because the absolute majority of tooltips > > don't use that. > [...] > - Make x_set_mouse_color record serial numbers and use a new error handling routine to check them, reducing the number of XSync calls but not getting rid of them entirely. You didn't answer my question about the possibility to remove the call to x_set_mouse_color (and anything mouse-related) altogether in a tip frame. Is that feasible? Could you try that and see if it has any adverse effects? > - Try to defer garbage collection while running commands like x-create-frame. I'd recommend against that, or at most make it optional behavior. IME, deferring GC is produces net loss in most situations. Your situation is clearly rare, so skewing the behavior for all the rest of the users sounds unwise.