all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#9291: 23.3.50; Emacs takes long time to start up due to DNS
@ 2011-08-13  1:59 Leo
  2011-08-13  3:01 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Leo @ 2011-08-13  1:59 UTC (permalink / raw)
  To: 9291

On my machine, emacs -q -nw normally takes 0.1 seconds. But I have just
found that it could take more than 10 seconds on some network. I have
this device that provides wifi/wapi through the telencom network here,
so the behaviour is readily reproducible. Let me know how I may provide
more information for debugging. AFAICT this happens in 24.0.50 too.

I am running emacs 23.3.50 on OSX 10.6.8.

leo@bogon ~$ time emacs -q -nw

real	0m11.347s
user	0m0.207s
sys	0m0.037s

Backtrace in GDB reveals this:

#0  0x00007fff85677c0a in kevent ()
#1  0x00007fff856b69fa in _mdns_query_mDNSResponder ()
#2  0x00007fff856b5db7 in _mdns_search ()
#3  0x00007fff856b4ffc in _mdns_addrinfo ()
#4  0x00007fff856b4059 in search_addrinfo ()
#5  0x00007fff856b3a7a in si_addrinfo ()
#6  0x00007fff856b348d in getaddrinfo ()
#7  0x000000010012915e in init_system_name () at sysdep.c:1793
#8  0x00000001001a4b9d in init_editfns () at editfns.c:154
#9  0x00000001001021bc in main (argc=3, argv=0x7fff5fbff5f8) at emacs.c:1768

BTW, is it possible for init_system_name to be done async?

Leo





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-13  3:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-13  1:59 bug#9291: 23.3.50; Emacs takes long time to start up due to DNS Leo
2011-08-13  3:01 ` Stefan Monnier

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.