unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ken Raeburn <raeburn@permabit.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 21473@debbugs.gnu.org
Subject: bug#21473: 24.5; very slow tooltip display to sort-of-slow remote display
Date: Sun, 27 Sep 2015 09:29:11 -0400	[thread overview]
Message-ID: <BB52C645-1B8C-499F-87DE-FA960C6E438A@permabit.com> (raw)
In-Reply-To: <83612wf8pr.fsf@gnu.org>


> On Sep 27, 2015, at 06:38, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> From: Ken Raeburn <raeburn@permabit.com>
>> Date: Sun, 27 Sep 2015 06:35:30 -0400
>> Cc: 21473@debbugs.gnu.org
>> 
>> This one’s still basically unchanged. I just got 165 _XReply round-trip delays, with face realization color requests accounting for 60 of those, x_create_tip_frame initialization using “black” and “white” accounting for a dozen more, and other XParseColor or XAllocColor calls bringing it up to around 100 (maybe fewer than last time, by just a few); 38 XSync calls, almost all for error catching. The other ~20% is XQueryColors, XListFonts, XGetWindowProperty, and a few other calls that need responses.
> 
> So you are saying that creating a tip frame is significantly different
> in this regard from creating any "regular" frame?  If so, where are
> the differences, wrt face realization and color allocation?

Some of the creation process is different, yes, though Fx_create_frame and x_create_tip_frame do a lot of the same work; both cause basic face realization on the new frame, but x_create_tip_frame doesn’t seem to have had the issue that triggered it on other frames. (For example, it doesn’t set a default gamma value, while Fx_create_frame does.) The face realization happening here is all about the new frame.

This traffic was also present when I was looking into #11822, but as I was using a local display for the new frame, those round trips were fast and thus weren’t a problem. In this case, though, my one and only normal frame is displayed remotely, as is the tip frame, so now the excessive round trips slow it down a lot. Some of it’s going to be necessary, of course, but we’re making repetitive queries for colors we’ve looked up before, probably more XSync calls than are really necessary, etc.

Ken




  reply	other threads:[~2015-09-27 13:29 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-14  8:13 bug#21473: 24.5; very slow tooltip display to sort-of-slow remote display Ken Raeburn
2015-09-15 14:32 ` Eli Zaretskii
2015-09-15 22:03   ` Ken Raeburn
2015-09-26  7:03 ` Eli Zaretskii
2015-09-27 10:35   ` Ken Raeburn
2015-09-27 10:38     ` Eli Zaretskii
2015-09-27 13:29       ` Ken Raeburn [this message]
2015-09-29 20:15         ` Ken Raeburn
2015-09-30  7:23         ` Eli Zaretskii
2015-10-01 10:01           ` Ken Raeburn
2015-10-01 16:51             ` Ken Raeburn
2015-10-04  9:45             ` Eli Zaretskii
2015-10-04 18:02               ` Ken Raeburn
2015-10-04 19:40                 ` Eli Zaretskii
2015-10-05  5:38                   ` Ken Raeburn
2015-10-05  6:25                     ` Eli Zaretskii
2015-10-06  2:15                       ` Ken Raeburn
2015-10-06  2:44                         ` Eli Zaretskii
2015-10-06  9:30                           ` Ken Raeburn
2015-10-06 14:46                             ` Eli Zaretskii
2015-10-07  6:09                               ` Ken Raeburn
2015-10-07 15:31                                 ` Eli Zaretskii
2015-10-08  6:04                                   ` Ken Raeburn
2015-10-08  8:12                                     ` Ken Raeburn
2021-09-19 22:29                                       ` Stefan Kangas
2022-04-24 13:19                                         ` Lars Ingebrigtsen
2022-04-25  2:09                                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-23  8:02                                         ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BB52C645-1B8C-499F-87DE-FA960C6E438A@permabit.com \
    --to=raeburn@permabit.com \
    --cc=21473@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).