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: Sun, 27 Sep 2015 09:29:11 -0400 Message-ID: References: <9F31D581-6B5A-42B7-8031-6920089AFFF4@permabit.com> <83pp15hdbg.fsf@gnu.org> <59C0A752-87BB-4467-9A3F-DC1E5A278842@permabit.com> <83612wf8pr.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 1443360633 5632 80.91.229.3 (27 Sep 2015 13:30:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Sep 2015 13:30:33 +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 Sun Sep 27 15:30:21 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 1ZgC1s-00022L-Uv for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Sep 2015 15:30:13 +0200 Original-Received: from localhost ([::1]:57471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgC1s-0001QM-2s for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Sep 2015 09:30:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgC1o-0001Oh-Iu for bug-gnu-emacs@gnu.org; Sun, 27 Sep 2015 09:30:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgC1l-0006uJ-D9 for bug-gnu-emacs@gnu.org; Sun, 27 Sep 2015 09:30:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgC1l-0006tX-AC for bug-gnu-emacs@gnu.org; Sun, 27 Sep 2015 09:30:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZgC1k-0006TA-Il for bug-gnu-emacs@gnu.org; Sun, 27 Sep 2015 09:30:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Raeburn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Sep 2015 13:30:03 +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.144336056424764 (code B ref 21473); Sun, 27 Sep 2015 13:30:03 +0000 Original-Received: (at 21473) by debbugs.gnu.org; 27 Sep 2015 13:29:24 +0000 Original-Received: from localhost ([127.0.0.1]:45601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgC15-0006RI-2V for submit@debbugs.gnu.org; Sun, 27 Sep 2015 09:29:23 -0400 Original-Received: from mail-qk0-f180.google.com ([209.85.220.180]:35591) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgC0x-0006Qb-QY for 21473@debbugs.gnu.org; Sun, 27 Sep 2015 09:29:16 -0400 Original-Received: by qkap81 with SMTP id p81so58878447qka.2 for <21473@debbugs.gnu.org>; Sun, 27 Sep 2015 06:29:15 -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=ZRhBXMn/uWXO+fCuddbtfKIMLW/z+ML4YeVDyqXA7R0=; b=hBszYbnVV2xJwPXJOvCs3eDvjKVjsspWC0pkzOHglRpCCLDk7slpR/0KpGYb89+oSR B8CBLPzYhNkIO74Mf+Qgd46xaBq+AKHxIYXfTCy3DBSaQAXi5m6B8FvC0H6guMnVgl+R grsn7jmZC7TvmNvGbVevecqCPUIO4NPH3cS4Q= 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=ZRhBXMn/uWXO+fCuddbtfKIMLW/z+ML4YeVDyqXA7R0=; b=bM3+0rYdWLVUbirezUugNnNcr/h8CY/wepcXm5vEaeW2tNcYjw/sGVwYivfd3KllvM BFu9YUpT6gMLPzxm/bBphZHq8lXMkimzj7fw/3kyJ6HIoiJHFKr1/5zrcl/uHEWV9325 b+lVILNlXASJvdwc6OTPE9OFRCFURdvAvGvtbK6wvfzbte2YWBv2OL0VEy+fbueaxcjD +/gyQ1v330gXwh/sQnwmZmBcDzxsv5INshpRI0imizUbhoddmIfahEMiwZklnoba5eOP Pozm4zOjyQqDCaN6kmIVs53HmjiUJwZlWzKTmL01bXIc9GsAiJt3MhhV890f/esnAspU HXJg== X-Gm-Message-State: ALoCoQlXZVE2ZJkwWTj8dFpQIiLOZ39YuT35FQaRhjqjqVi9aJF274EdOqkhyObO/biKNdgn6dtT X-Received: by 10.55.198.9 with SMTP id b9mr16590679qkj.97.1443360555361; Sun, 27 Sep 2015 06:29:15 -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 y12sm5211784qgd.20.2015.09.27.06.29.13 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 27 Sep 2015 06:29:14 -0700 (PDT) In-Reply-To: <83612wf8pr.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:106970 Archived-At: > On Sep 27, 2015, at 06:38, Eli Zaretskii wrote: >=20 >> From: Ken Raeburn >> Date: Sun, 27 Sep 2015 06:35:30 -0400 >> Cc: 21473@debbugs.gnu.org >>=20 >> This one=E2=80=99s 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 =E2=80=9Cblack=E2=80=9D= and =E2=80=9Cwhite=E2=80=9D 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. >=20 > 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=E2=80=99t = seem to have had the issue that triggered it on other frames. (For = example, it doesn=E2=80=99t 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=E2=80=99t 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=E2=80=99s going to = be necessary, of course, but we=E2=80=99re making repetitive queries for = colors we=E2=80=99ve looked up before, probably more XSync calls than = are really necessary, etc. Ken=