unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alexander Shukaev <emacs@Alexander.Shukaev.name>
To: Noam Postavsky <npostavs@users.sourceforge.net>
Cc: 29095@debbugs.gnu.org
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	[thread overview]
Message-ID: <bd82ff1c-65fe-eadd-bf81-9f701d67cff7@Alexander.Shukaev.name> (raw)
In-Reply-To: <87y3nl7g8l.fsf@users.sourceforge.net>

On 11/05/2017 12:53 AM, Noam Postavsky wrote:
> Alexander Shukaev <emacs@Alexander.Shukaev.name> 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.





  reply	other threads:[~2017-11-04 23:58 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-01  0:44 bug#29095: Bug: The '20a09de953f437109a098fa8c4d380663d921481' merge increased my Emacs configuration loading time from 9 s to 60 s Alexander Shukaev
2017-11-01  1:31 ` Noam Postavsky
2017-11-01 23:49   ` Alexander Shukaev
2017-11-02  0:21     ` Noam Postavsky
2017-11-04 23:28       ` Alexander Shukaev
2017-11-04 23:53         ` Noam Postavsky
2017-11-04 23:58           ` Alexander Shukaev [this message]
2017-11-05 10:53           ` martin rudalics
2017-11-07  9:10             ` Noam Postavsky
2017-11-07 12:57               ` Noam Postavsky
2017-11-08  7:13               ` martin rudalics
2017-11-08 13:42                 ` Noam Postavsky
2017-11-09  7:28                   ` martin rudalics
2017-11-09 13:20                     ` Noam Postavsky
2017-11-09 18:12                       ` martin rudalics
2017-11-09 22:09                         ` Alexander Shukaev
2017-11-09 22:22                           ` Alexander Shukaev
2017-11-10  0:53                           ` Noam Postavsky
2019-04-23  2:52                             ` Noam Postavsky
2017-11-12 10:09                           ` martin rudalics
2017-11-08  7:13               ` martin rudalics
2017-11-01  3:44 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bd82ff1c-65fe-eadd-bf81-9f701d67cff7@Alexander.Shukaev.name \
    --to=emacs@alexander.shukaev.name \
    --cc=29095@debbugs.gnu.org \
    --cc=npostavs@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).