From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Emacs-26.0.91: switch-to-buffer-other-window runs too slowly (about 0.1s) Date: Mon, 26 Mar 2018 18:59:06 +0200 Message-ID: <87k1ty22p1.fsf@gmail.com> References: <83efk6g93z.fsf@gnu.org> <544b8346-bda9-45eb-9573-1d51d9f768b2@Spark> <83bmfag8gu.fsf@gnu.org> <87y3ie24z1.fsf@gmail.com> <87sh8m23tc.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1522083437 31054 195.159.176.226 (26 Mar 2018 16:57:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2018 16:57:17 +0000 (UTC) Cc: zhang cc , Emacs developers To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 18:57:12 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0VQl-0007zg-Vw for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2018 18:57:12 +0200 Original-Received: from localhost ([::1]:58066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0VSp-0004x1-Cm for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2018 12:59:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0VSi-0004wr-VQ for emacs-devel@gnu.org; Mon, 26 Mar 2018 12:59:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0VSf-0006n4-R1 for emacs-devel@gnu.org; Mon, 26 Mar 2018 12:59:13 -0400 Original-Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:42400) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0VSf-0006mS-L3 for emacs-devel@gnu.org; Mon, 26 Mar 2018 12:59:09 -0400 Original-Received: by mail-wr0-x22f.google.com with SMTP id s18so19630486wrg.9 for ; Mon, 26 Mar 2018 09:59:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=JICod63WTb77xoz7WNcfFDiUC9RcRxjZ+zd4+askFMM=; b=hqBonetUUXkEPUe4D1c/+9hh6mZkpNTUfi/nQB5v3eRaVUsl86+vxF8HqiA+goI7lN gJBkG1+67LgCCet/xH/H2jJmwcC2LxmERwEzYxiGeKlesEZRhfkkACp/EbWh83GzD9oA gFapIKOvsHShUAVtK4dZ05OuixgWJuq5X6/RpY9GkUwB7Va+eQQTZx71WStqzDE2aIk6 pTZ43KGJmfoMVqRlIrqLdHhI48x73GxJF+r93fEsf6INXnySw5b3MCZs2wLx2ngck1uQ NrZEsh1LdKCSF5eowDPB1iU4Grs+GlkcTJESXcdFl4uVovnX/Grn7FsPC7pLEz80mD1e vk5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version; bh=JICod63WTb77xoz7WNcfFDiUC9RcRxjZ+zd4+askFMM=; b=NW8m/PDJftvl7UA7qhoRfBPWHDhYBrZ6cNKBUTezUadFe3nCdQfoJGFUTilRLQVR8R Pkbp7UcNnq7t7ATe4RpSaY1VJJ0tMv6TaMAz0EeAKIDhOUJJt/yE4ndNpTg0bu7I/YBm alSBYBcdkX+V9i1LvnAFCgQcQqmL8qzv0TFqacigmcGHLvT4s8K2NAyZqDMTqeIRTft9 PubxrUTEahrZT8q82dEIcwyK1WQRjWLU7f6Vyw+J5KYDnmL0eFuzJO8H71Od9fbz1gqB VdTWxs6ld4AF57k2Yj0XbgCUPfa65fTDTFQ4Y0m/HTaDgFGnZWBb7HGYrFU37uwUnqbM UfBA== X-Gm-Message-State: AElRT7H24WcKBizyzJQ8StutMx0pp8RW03exZg3c21KwzVLXE7VUpcBX sYRjyuQ63EQ89O3hRF8uOJ0= X-Google-Smtp-Source: AG47ELvehIWHf7uMPYyT1Ni4r19OTFnMviVmsQk/UUKu/KZq8tUynRScC2IlP8lsEhgzCIvvsneS6w== X-Received: by 10.223.147.67 with SMTP id 61mr32056655wro.37.1522083548273; Mon, 26 Mar 2018 09:59:08 -0700 (PDT) Original-Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id z3sm24502825wme.3.2018.03.26.09.59.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Mar 2018 09:59:07 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Noam Postavsky's message of "Mon, 26 Mar 2018 12:37:36 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224050 Archived-At: Noam Postavsky writes: > On 26 March 2018 at 12:34, Robert Pluim wrote: >> Robert Pluim writes: >> >>> I get the same: 0.1 seconds under GTK, 0.000446348s under -nw >> >> And profiling pointed at window--maybe-raise-frame. Testing then >> pointed at make-frame-visible. Disabling the call to that in >> window--maybe-raise-frame makes the test virtually instantaneous for >> me. Looks like x_make_frame_visible is the culprit. > > Does changing x-wait-for-event-timeout affect this? Yes. 0.001990967s with that let-bound to nil. The time increases as I increase x-wait-for-event-timeout. Robert