From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61667: 29.0.60; Failure to redisplay Date: Sat, 25 Feb 2023 09:12:14 +0200 Message-ID: <83v8jqkylt.fsf@gnu.org> References: <04d7cb31-684c-07c0-ee7b-503514fc1a85@yandex.ru> <87a617eanz.fsf@yahoo.com> <4306cb76-a44c-3101-e43c-fd64afae4a51@yandex.ru> <871qmje2ws.fsf@yahoo.com> <83edqjtbss.fsf@gnu.org> <4e5e2a46-9b07-206a-6774-9f98f34cbd14@yandex.ru> <83y1orrolh.fsf@gnu.org> <83sfeyswdw.fsf@gnu.org> <877cwactgv.fsf@yahoo.com> <83mt55sxli.fsf@gnu.org> <8afe34f2-eeea-3be8-82ef-576a115beb6d@yandex.ru> <96b742a05da174ece02e@heytings.org> <25c48260-2edc-f062-8fef-52ff2fdd22e3@yandex.ru> <96b742a05dea855f9636@heytings.org> <853eca8f-5850-dd73-7601-4fad92613ab9@yandex.ru> <0a7313f0-765c-aeca-ae50-6d8adbfb04ed@yandex.ru> <83cz5znpko.fsf@gnu.org> <838rgnnlt0.fsf@gnu.org> <17adc089-9773-0e1c-8345-1f289e3285a4@yandex.ru> <831qmen4ln.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26775"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 61667@debbugs.gnu.org, gregory@heytings.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 25 08:13:23 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVokE-0006o4-Me for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Feb 2023 08:13:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVojv-0004f9-W6; Sat, 25 Feb 2023 02:13:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVoju-0004ee-Nc for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2023 02:13:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVoju-0005E7-FP for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2023 02:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVoju-0002dl-AK for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2023 02:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Feb 2023 07:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61667 X-GNU-PR-Package: emacs Original-Received: via spool by 61667-submit@debbugs.gnu.org id=B61667.167730914610098 (code B ref 61667); Sat, 25 Feb 2023 07:13:02 +0000 Original-Received: (at 61667) by debbugs.gnu.org; 25 Feb 2023 07:12:26 +0000 Original-Received: from localhost ([127.0.0.1]:38870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVojJ-0002co-Jw for submit@debbugs.gnu.org; Sat, 25 Feb 2023 02:12:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVojH-0002cb-P0 for 61667@debbugs.gnu.org; Sat, 25 Feb 2023 02:12:24 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVojC-0005BS-BM; Sat, 25 Feb 2023 02:12:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=9WqmkgYvKNrdMKmGENbVzitnyGgcR3Xuoqm2omRDK8s=; b=dRN1BWFOLvow rojKyy5Hy91Li6lk3SP34VE8hgKMZnS3kPZFwrEUBf9k5Zuq/ARhE4op9odN5TvACP0AVLadD6s2W XYDR+QrcuTdN8SzWsfC8V4Uz+ayfH0wdLHIXbsaaQQOqAKgXm4Jlzd62betuVeoWjdQy2zJJUHVMR Oa+TYFfqD5y+Bxbi0eQt4lsY87ibbPxtMghwv+CQBpm7BG/1yBs/1bkkD9cR4aCK594B3KDH5uwOU GpGzCh4ElLjw4XNEu2RPf/eKsywVGydgf9SuRP5yksRsGze1pwsRKSl4vncjH7A0UUzxtCvzcyNum QWCiK7tHrCfEufrCiQSDpQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVoj7-0001ar-2J; Sat, 25 Feb 2023 02:12:14 -0500 In-Reply-To: (message from Dmitry Gutov on Fri, 24 Feb 2023 23:49:05 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256689 Archived-At: > Date: Fri, 24 Feb 2023 23:49:05 +0200 > Cc: luangruo@yahoo.com, 61667@debbugs.gnu.org, gregory@heytings.org > From: Dmitry Gutov > > On 24/02/2023 23:19, Eli Zaretskii wrote: > >> Date: Fri, 24 Feb 2023 23:03:12 +0200 > >> Cc:luangruo@yahoo.com,61667@debbugs.gnu.org,gregory@heytings.org > >> From: Dmitry Gutov > >> > >> +int64_t now_millis() { > >> + struct timespec now; > >> + timespec_get(&now, TIME_UTC); > >> + > >> + return ((int64_t) now.tv_sec) * 1000 + ((int64_t) now.tv_nsec) / 1000; > > ^^^^ > > That 1000 should be 1000000, right? > > Right, sorry. I misread it in the doc for "microseconds". > > The result makes no difference, though: now only zeros are printed (and > sometimes 1): > > [x_set_name] time to x_set_name_internal: 0 > [x_set_name] time to x_set_name_internal: 0 Well, 1 msec is a far cry from 20 or 50... > So the calls take < 1ms. Yes. Which means these X and GTK calls are not the direct culprit of the delay.