emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Asynchronous DNS


From: John Wiegley
Subject: Re: Asynchronous DNS
Date: Tue, 26 Jan 2016 11:48:48 -0800
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin)

>>>>> Lars Magne Ingebrigtsen <address@hidden> writes:

> 1) Add a new `resolve-name' function that would fork Emacs, call
> getaddrinfo/gethostbyname, and do a callback once we get a reply. The
> problem is that a forked Emacs is a very strange thing, and is not something
> we otherwise do. I looked at this for a day last time, and I couldn't get it
> to work, really. Perhaps somebody else could, though.

BTW- this exactly what the 'async' library now in GNU ELPA was written to do.
You could use it at least as a first approximation.

Due to expense, I'd recommend collecting as many names to resolve at a time as
you can, and then doing them asynchronously "in batch"; I can think of a few
web pages that would suddenly result in 20-30 Emacsen being forked.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2



reply via email to

[Prev in Thread] Current Thread [Next in Thread]