From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.bugs Subject: bug#21473: 24.5; very slow tooltip display to sort-of-slow remote display Date: Mon, 5 Oct 2015 01:38:26 -0400 Message-ID: <9CBD7FEC-C4BC-4FD8-8FE1-9760C2113DAC@permabit.com> 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> <83a8ry1kyt.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1444023562 19372 80.91.229.3 (5 Oct 2015 05:39:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Oct 2015 05:39:22 +0000 (UTC) Cc: 21473@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 05 07:39:11 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 1ZiyUQ-0006vH-OC for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 07:39:10 +0200 Original-Received: from localhost ([::1]:44386 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiyUP-0000cS-PB for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 01:39:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiyUL-0000cJ-PR for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 01:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZiyUI-00064P-EK for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 01:39:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiyUI-00064D-B0 for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 01:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZiyUI-0003C3-6h for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 01:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Raeburn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Oct 2015 05:39: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.144402351312235 (code B ref 21473); Mon, 05 Oct 2015 05:39:02 +0000 Original-Received: (at 21473) by debbugs.gnu.org; 5 Oct 2015 05:38:33 +0000 Original-Received: from localhost ([127.0.0.1]:54767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZiyTo-0003BG-Pz for submit@debbugs.gnu.org; Mon, 05 Oct 2015 01:38:33 -0400 Original-Received: from mail-qg0-f43.google.com ([209.85.192.43]:36558) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZiyTm-0003B8-PO for 21473@debbugs.gnu.org; Mon, 05 Oct 2015 01:38:31 -0400 Original-Received: by qgx61 with SMTP id 61so140794742qgx.3 for <21473@debbugs.gnu.org>; Sun, 04 Oct 2015 22:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=permabit.com; s=google; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hH3C/KMLbal9A3xlVVjV4x0L+iCAQcEaMTtAppclm4Q=; b=MfjkBiEezCQFCgWKVvZGKCzAaiI42ykb24rjn3p4ehP/kvPCwq3VoJDLghYx5FxkH3 HKPqmFXAyfurCvclG9zROWKDs/uMkk5sdZvhSEaSLGKmncBpps160jmUz7txvu/5kIUA SnFepabfmisMqv/u+3wFW5bHg2FK/dKABVV70= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=hH3C/KMLbal9A3xlVVjV4x0L+iCAQcEaMTtAppclm4Q=; b=dhefmMEYT6a6vYxWGQl0nKBl05Qxq+XKTqyoIRto8rgmsHp0JD0z5Mwc/6ayRrKlwK GPZQq2a8FHyO6n8BMAxb5ZsjJIuEYnB3faTJQPsrnsmvyc9G+FOl2hUZ5kk4VASIFXYC DV9S3481Uu9tANxkClVtJZSGLJzhNqdrkHHpPM5N4zUV/IN+yJrQpLftdDrzNdxFRlKP 8SmPMrJbJUvhMUJGO6m1Gf5gijc/0d5ZVpGPVgen5L6GqpgkLxFROleMSkZRf5ssgtsU PhH+6kCA0MLUDYMuwxoUVbn320TpmvSdZYNMKpASGFjAwMp5W5wLHpqx+noSLVFUnq8K gkIQ== X-Gm-Message-State: ALoCoQn73JQAZHmiNEBo16mYr75LOlFbjH6hMG4u6DjuTN/C/LeYUQEiWD/S0tfXiq2Uj+UZ9ack X-Received: by 10.140.44.11 with SMTP id f11mr36679379qga.80.1444023510273; Sun, 04 Oct 2015 22:38:30 -0700 (PDT) Original-Received: from [192.168.17.111] (c-66-31-203-101.hsd1.ma.comcast.net. [66.31.203.101]) by smtp.gmail.com with ESMTPSA id d64sm10565566qgf.34.2015.10.04.22.38.28 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 04 Oct 2015 22:38:29 -0700 (PDT) In-Reply-To: <83a8ry1kyt.fsf@gnu.org> X-Mailer: Apple Mail (2.2104) 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:107296 Archived-At: > On Oct 4, 2015, at 15:40, Eli Zaretskii wrote: >=20 >> From: Ken Raeburn >> Date: Sun, 4 Oct 2015 14:02:18 -0400 >> Cc: 21473@debbugs.gnu.org >>=20 >>>> 5 _XReply =C2=AB XSync =C2=AB x_check_errors =C2=AB = x_set_mouse_color =C2=AB x_set_frame_parameters =C2=AB = x_default_parameter =C2=AB x_create_tip_frame =C2=AB Fx_show_tip =C2=AB = Ffuncall =C2=AB exec_byte_code =C2=AB funcall_lambda =C2=AB Ffuncall =C2=AB= exec_byte_code =C2=AB funcall_lambda =C2=AB Ffuncall =C2=AB = run_hook_with_args =C2=AB Ffuncall =C2=AB exec_byte_code =C2=AB = funcall_lambda =C2=AB Ffuncall =C2=AB Fapply =C2=AB Ffuncall =C2=AB = exec_byte_code =C2=AB funcall_lambda =C2=AB Ffuncall =C2=AB call1 =C2=AB = timer_check_2 =C2=AB timer_check =C2=AB readable_events =C2=AB = get_input_pending >>>=20 >>> Any idea why we need to call >>>=20 >>> x_default_parameter (f, parms, Qmouse_color, build_string ("black"), >>> "pointerColor", "Foreground", RES_TYPE_STRING); >>>=20 >>> 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. >=20 > 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? Ah, sorry. Yes, it seems to work okay, as far as I can tell, and cuts = out 11 round trips. With a remote display I=E2=80=99m able to move the = mouse into the tooltip window for a few seconds before it goes away, and = (at least on my display) it=E2=80=99s showing a basic black arrow = pointer. I=E2=80=99m not sure how to get it to stick around past my = moving the mouse into the window; the next thing Emacs does seems to be = to delete the window. The frame deletion code protects against calling = XFreeCursor on a zero value, so I don=E2=80=99t expect any problems = there. >=20 >> - Try to defer garbage collection while running commands like = x-create-frame. >=20 > 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. I can imagine that. Most commands aren=E2=80=99t likely to allocate = nearly as much as I=E2=80=99m seeing during normal frame creation. But = that=E2=80=99s a separate issue=E2=80=A6. Ken=