From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78714 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Asynchroneous image retrieval in HTML rendering Date: Thu, 05 May 2011 08:51:47 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87k4e5z24s.fsf@lifelogs.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> <87tyd9jt0r.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1304603602 13577 80.91.229.12 (5 May 2011 13:53:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 May 2011 13:53:22 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27016@lists.math.uh.edu Thu May 05 15:53:18 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 1QHyzV-0001hT-FQ for ding-account@gmane.org; Thu, 05 May 2011 15:53:17 +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 1QHyyP-0004DB-M5; Thu, 05 May 2011 08:52:09 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QHyyO-0004D1-01 for ding@lists.math.uh.edu; Thu, 05 May 2011 08:52:08 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QHyyK-0007Eb-G2 for ding@lists.math.uh.edu; Thu, 05 May 2011 08:52:08 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QHyyH-0006qy-1N for ding@gnus.org; Thu, 05 May 2011 15:52:01 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QHyyF-0000oe-Tj for ding@gnus.org; Thu, 05 May 2011 15:51:59 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 May 2011 15:51:59 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 May 2011 15:51:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 58 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:4Q1ZTkXWEXYOzaALhsSlH7Ts3PA= X-Spam-Score: 1.5 (+) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-1826--5343h-0s--0d--H*u:Emacs, 0.000-1732--5067h-0s--0d--H*u:Gnus, 0.000-1667--4877h-0s--0d--H*u:linux, 0.000-1667--4877h-0s--0d--H*UA:linux, 0.000-1611--4713h-0s--0d--H*UA:gnu Spam tokens: 0.998-27843--234h-289521s--0d--UD:ru, 0.987-1--0h-1s--0d--anti-spam, 0.987-1--0h-1s--0d--antispam, 0.965-14799--3688h-190627s--0d--HContent-Transfer-Encoding:8bit Autolearn status: no -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO 2.3 FSL_RU_URL URI: FSL_RU_URL -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78714 Archived-At: On Thu, 05 May 2011 13:17:40 +0200 Antoine Levitt wrote: AL> 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. AL> Maybe your connexion or DNS servers are better than mine, or some other AL> parameter is different, but I definitely experienced freezes that were AL> DNS-related. Lars also pointed out explicitely resolving the DNS in AL> /etc/hosts sped things up immensely for gwene.com.wordpress.terrytao, so AL> you could try this if you're not convinced by my admitedly AL> non-repeatable arguments. OK. >> 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. AL> I don't know why, but DNS results don't seem to be cached. I don't know AL> much about DNS queries so I'm not sure if that's supposed to be the case AL> or not. It's configurable and depends on the DNS records, but typically they have a TTL of at least an hour. On Thu, 05 May 2011 12:58:24 +0200 Julien Danjou wrote: JD> I may be wrong, but I disagree: they are usually fast, except when there JD> is a problem or you're behind a very slow link. Just because they are JD> serialized and synchronous. OK, I'll buy that (and Antoine's argument above). JD> OTOH, I agree that the only useful place for this enhancement is JD> probably HTML rendering… There are some DNS-based anti-spam services but I can't think of anything else that might require it. Ted