From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#58634: Long delay with blank screen whilst loading desktop at emacs startup Date: Wed, 19 Oct 2022 19:11:38 +0000 Message-ID: References: <83edv3zud8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7508"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Alan Mackenzie , 58634@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 19 21:12:47 2022 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 1olEUg-0001kb-Hc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 21:12:46 +0200 Original-Received: from localhost ([::1]:40302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olEUf-0001kn-1D for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 15:12:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olETz-0001ia-8R for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 15:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60977) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olETy-0005tC-VV for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 15:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olETy-0002Fy-Mo for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 15:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2022 19:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58634 X-GNU-PR-Package: emacs Original-Received: via spool by 58634-submit@debbugs.gnu.org id=B58634.16662067178655 (code B ref 58634); Wed, 19 Oct 2022 19:12:02 +0000 Original-Received: (at 58634) by debbugs.gnu.org; 19 Oct 2022 19:11:57 +0000 Original-Received: from localhost ([127.0.0.1]:60054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olETt-0002FX-5X for submit@debbugs.gnu.org; Wed, 19 Oct 2022 15:11:57 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:49171) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olETb-0002Ex-EM for 58634@debbugs.gnu.org; Wed, 19 Oct 2022 15:11:51 -0400 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 29JJBc3A003603 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 19 Oct 2022 19:11:38 GMT In-Reply-To: <83edv3zud8.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 19 Oct 2022 18:49:23 +0300") 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" Xref: news.gmane.io gmane.emacs.bugs:245889 Archived-At: Eli Zaretskii writes: >> Date: Wed, 19 Oct 2022 13:28:42 +0000 >> From: Alan Mackenzie >> >> In my current desktop file, I have 166 buffers. I'm using an up to date >> Emacs 29. >> >> On loading this desktop into emacs -nw on X Windows, or into a linux >> console, it takes a long time to load, around 28 seconds. Of that time, >> my terminal window/screen is entirely blank for around 18 seconds, with >> not even a mode line being displayed. > > And nothing in the echo-area, either? > >> Doing the same in a GUI run on X also takes around 28 seconds to load, >> but during that time, random buffers are displayed on the screen, >> complete with mode line. >> >> I think the native compiler is running in the background during this 28 >> seconds, and thus contributes to the relatively long start up time. > > To test this hypothesis, leave Emacs alone running until > list-processes shows an empty list, then restart Emacs. This time, > you should not see the delay due to native compilation, so if there > still is a delay, it is unlikely to be due to native compilation. > > In any case, you should be able to see whether it's native compilation > by watching the emacs --batch processes that run on your system during > that time. Yes totally agree, listing processes is the quickest way to confirm this hypothesis. Alan please let us know. Andrea