From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78713 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.gnus.general Subject: Re: Asynchroneous image retrieval in HTML rendering Date: Thu, 05 May 2011 13:17:40 +0200 Message-ID: <87tyd9jt0r.fsf@gmail.com> References: <87bozwfw84.fsf@gmail.com> <87r58ll8jm.fsf@gmail.com> <87liys4x04.fsf@gmail.com> <87tydewilm.fsf@gmail.com> <87liyp35fy.fsf@gmail.com> <87k4e92eyx.fsf@gmail.com> <87k4e5h18p.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304594332 22600 80.91.229.12 (5 May 2011 11:18:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 May 2011 11:18:52 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27015@lists.math.uh.edu Thu May 05 13:18:48 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QHwZz-0005Ve-Kb for ding-account@gmane.org; Thu, 05 May 2011 13:18:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QHwZR-0003XK-Ax; Thu, 05 May 2011 06:18:13 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QHwZP-0003XA-Of for ding@lists.math.uh.edu; Thu, 05 May 2011 06:18:11 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QHwZM-0000gO-Gf for ding@lists.math.uh.edu; Thu, 05 May 2011 06:18:12 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QHwZK-0002xg-NP for ding@gnus.org; Thu, 05 May 2011 13:18:06 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QHwZK-00053W-90 for ding@gnus.org; Thu, 05 May 2011 13:18:06 +0200 Original-Received: from ney92-7-78-233-218-202.fbx.proxad.net ([78.233.218.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 May 2011 13:18:06 +0200 Original-Received: from antoine.levitt by ney92-7-78-233-218-202.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 May 2011 13:18:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ney92-7-78-233-218-202.fbx.proxad.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-1629--5925h-0s--0d--H*UA:Emacs, 0.000-1487--5408h-0s--0d--H*u:Emacs, 0.000-1408--5120h-0s--0d--H*UA:Gnus, 0.000-1407--5119h-0s--0d--H*u:Gnus, 0.000-1355--4929h-0s--0d--H*u:linux Spam tokens: 0.999-27206--223h-227487s--0d--UD:ru, 0.987-1--0h-1s--0d--D*info Autolearn status: no 0.0 FREEMAIL_FROM Sender email is freemail (antoine.levitt[at]gmail.com) 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 2.3 FSL_RU_URL URI: FSL_RU_URL -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.9 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78713 Archived-At: 05/05/11 12:48, Ted Zlatanov > On Mon, 02 May 2011 19:40:43 +0200 Lars Magne Ingebrigtsen wrote: > > LMI> The next thing to tackle is doing the DNS resolving asynchronously. > ... > LMI> If only somebody could implement an async C-level resolver. :-) > > On Thu, 05 May 2011 10:25:15 +0200 Julien Danjou wrote: > > JD> http://www.corpit.ru/mjt/udns.html > > On Wed, 04 May 2011 20:40:58 +0200 Simon Josefsson wrote: > > SJ> http://www.chiark.greenend.org.uk/~ian/adns/ > > Has anyone tested to see if DNS lookups are actually a problem? Test an > entirely local page vs. a page with lots of remote image URLs. I don't > see a difference on my machine. Maybe your connexion or DNS servers are better than mine, or some other parameter is different, but I definitely experienced freezes that were DNS-related. Lars also pointed out explicitely resolving the DNS in /etc/hosts sped things up immensely for gwene.com.wordpress.terrytao, so you could try this if you're not convinced by my admitedly non-repeatable arguments. > > Typically DNS lookups are very fast and HTML pages don't have a huge mix > of domains for the images they reference, so I think this is wasted > effort *for the specific purpose of rendering HTML faster*. I can't > think of any practical uses within Emacs for async DNS lookups, > either. I don't know why, but DNS results don't seem to be cached. I don't know much about DNS queries so I'm not sure if that's supposed to be the case or not.