all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: chad <yandros@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Asynchronous DNS resolving
Date: Fri, 13 Feb 2015 16:06:19 -0800	[thread overview]
Message-ID: <2CD6D564-472D-4D58-BB6C-F6FD949D5D34@gmail.com> (raw)
In-Reply-To: <jwv61b57hb1.fsf-monnier+emacs@gnu.org>

Not what you asked, but related:

Modern browsers use a technique called DNS pre-fetching to increase
the responsiveness of their UI.  More or less, they pre-resolve the
DNS names of every link on a page when rendering it (usually with
some async technique). This helps with both images and links, which
can be a pretty big deal with a typical Web 2.0 page that has links
and images from many domains (for example: the host site, its CDN,
a comments site, and anywhere between a passel and a gaggle of
social media buttons).

There are some downsides to consider, unfortunately.  Many CDNs
really want a very short TTL on their resolves, and there are even
(I hear) some systems that use a system of ephemeral names in such
links to track users across sites (potentially bypassing cookies,
privacy policies, and anonymizing services). I suspect that eww
would like DNS pre-fetching anyway, but you might want a way to
turn it off.

I mention this now because it conflicts with the suggestion that
you can just make the entire open-network-stream (etc) process
async, and avoid the question at the level of eww.  Put another
way, you probably *can* do that, but youll be giving up a potentially
valuable browser speed-up.

I hope that helps,
~Chad



  reply	other threads:[~2015-02-14  0:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-13  7:10 Asynchronous DNS resolving Lars Ingebrigtsen
2015-02-13  7:21 ` Paul Eggert
2015-02-13  7:32   ` Lars Ingebrigtsen
2015-02-13  7:58     ` Paul Eggert
2015-02-13 19:20     ` Stefan Monnier
2015-02-14  0:06       ` chad [this message]
2015-02-14  3:44       ` Lars Ingebrigtsen
2015-02-14  6:20         ` Paul Eggert
2015-02-15  4:54           ` Lars Ingebrigtsen
2015-02-13  8:46 ` Eli Zaretskii
2015-02-13  9:02   ` Lars Ingebrigtsen
2015-02-15  5:31     ` Lars Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=2CD6D564-472D-4D58-BB6C-F6FD949D5D34@gmail.com \
    --to=yandros@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    /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 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.