From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.bugs Subject: bug#29095: Bug: The '20a09de953f437109a098fa8c4d380663d921481' merge increased my Emacs configuration loading time from 9 s to 60 s Date: Sun, 5 Nov 2017 00:58:49 +0100 Message-ID: References: <0899d792-c1fe-caa8-183e-298371d226a0@Alexander.Shukaev.name> <87h8ueaioy.fsf@users.sourceforge.net> <87zi858r9i.fsf@users.sourceforge.net> <87y3nl7g8l.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1509839951 11261 195.159.176.226 (4 Nov 2017 23:59:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Nov 2017 23:59:11 +0000 (UTC) Cc: 29095@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 05 00:59:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1eB8LB-0002XG-5z for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Nov 2017 00:59:05 +0100 Original-Received: from localhost ([::1]:42529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eB8LI-0003KJ-Mq for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Nov 2017 19:59:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eB8L9-0003K7-D1 for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 19:59:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eB8L8-0008LM-A6 for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 19:59:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42384) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eB8L8-0008LH-6T for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 19:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eB8L7-0005Bl-NK for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 19:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alexander Shukaev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Nov 2017 23:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29095 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 29095-submit@debbugs.gnu.org id=B29095.150983993519932 (code B ref 29095); Sat, 04 Nov 2017 23:59:01 +0000 Original-Received: (at 29095) by debbugs.gnu.org; 4 Nov 2017 23:58:55 +0000 Original-Received: from localhost ([127.0.0.1]:51065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eB8L0-0005BO-Ud for submit@debbugs.gnu.org; Sat, 04 Nov 2017 19:58:55 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:54978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eB8Kz-0005BG-Bi for 29095@debbugs.gnu.org; Sat, 04 Nov 2017 19:58:53 -0400 X-Originating-IP: 88.68.190.226 Original-Received: from [192.168.2.109] (dslb-088-068-190-226.088.068.pools.vodafone-ip.de [88.68.190.226]) (Authenticated sender: forum@alexander.shukaev.name) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 18350FB87E; Sun, 5 Nov 2017 00:58:50 +0100 (CET) In-Reply-To: <87y3nl7g8l.fsf@users.sourceforge.net> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:139455 Archived-At: On 11/05/2017 12:53 AM, Noam Postavsky wrote: > Alexander Shukaev writes: > >>> What confuses me though, is how a 100ms delay is adding ~50s to your >>> starup time?! Or are you just creating 500 frames on startup? >> >> Hah, of course not. So I took some additional time to investigate >> where this comes from and in turned out to be very simple: >> >> (setq-default minibuffer-auto-raise t) >> >> causes this. I think this needs to be addressed. Either by >> documenting this side effect or finding a better solution. > > Ah, so if I understand correctly, because of the minibuffer-auto-raise > setting, every time a message is printed Emacs tries to make the frame > visible, and because of x-wait-for-event-timeout, it waits for 100ms > each time. So if you get around ~500 messages during startup, it would > take about 50 seconds, thus explaining the increase you observed? > > Perhaps the thing to do is simply to disable x-wait-for-event-timeout if > we end up hitting the timeout. Under most window managers the frame > becomes visible much faster than 100ms anyway, as far as I know. Do you mean to set it to nil as the timeout is hit for the first time? >> I figured out why this GC issue was happening. It's a bug with >> `magit-filenotify' package, which I've already reported and found >> workaround for. So apart from my concerns about >> `minibuffer-auto-raise' and `x-wait-for-event-timeout', looks good so >> far. > > Ah yes, I saw that. It looks like it's not actually a GC issue as such, > but an (asynchronous) infinite loop that generates a lot of garbage (and > hence work for the GC). > > https://github.com/ruediger/magit-filenotify/issues/20 Indeed, thanks for rephrasing it.