From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78603 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.gnus.general Subject: Re: Asynchroneous image retrieval in HTML rendering Date: Fri, 29 Apr 2011 11:18:53 +0200 Message-ID: <87r58ll8jm.fsf@gmail.com> References: <87bozwfw84.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304068776 29556 80.91.229.12 (29 Apr 2011 09:19:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2011 09:19:36 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M26905@lists.math.uh.edu Fri Apr 29 11:19:33 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 1QFjrI-0003qO-G6 for ding-account@gmane.org; Fri, 29 Apr 2011 11:19:32 +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 1QFjqs-0004vc-KW; Fri, 29 Apr 2011 04:19:06 -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 1QFjqq-0004vO-Tw for ding@lists.math.uh.edu; Fri, 29 Apr 2011 04:19:04 -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 1QFjqp-00068v-7v for ding@lists.math.uh.edu; Fri, 29 Apr 2011 04:19:04 -0500 Original-Received: from mail-ww0-f42.google.com ([74.125.82.42]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QFjqn-0006VV-Qw for ding@gnus.org; Fri, 29 Apr 2011 11:19:01 +0200 Original-Received: by wwk4 with SMTP id 4so337648wwk.5 for ; Fri, 29 Apr 2011 02:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=l2ssPpl1S7Gg8giuU7g23KeSCm/+PCLpHd4H8t4PDrg=; b=CxZCOa6pOBgD/IL4PNLnuOd8upeozPksUwF9mB8pvPS072biHrODqd4TvPGouY7mg1 zhkFd4pjqy/CLzxyqU6gWq0P5DT8T+x3eid5wYR2MrNutXdJnrYjkDqSod4SpzMDPpLq H8PkktyYkWJIFbFO1z5Bg+qvc7SHnQ4kxBHts= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; b=NB9vv+oftJXeqMCzW4cWrIpJp7UO9209eZF8HOHJtqdW7mNcpOOWbqpB7cJHpsq7Ru /vROHvoKJfe2aTp0OKZfwybx3dOxGikp+H9aKST0gv1AU8cPtbYocz0A0BQgTauTvHj2 +4GyZCi9dWv4dryvm/SKeR+fiEWCeE4QownS8= Original-Received: by 10.227.140.32 with SMTP id g32mr594727wbu.83.1304068736225; Fri, 29 Apr 2011 02:18:56 -0700 (PDT) Original-Received: from lambda (portable56.ceremade.dauphine.fr [193.48.71.56]) by mx.google.com with ESMTPS id bs4sm1580742wbb.18.2011.04.29.02.18.54 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 29 Apr 2011 02:18:55 -0700 (PDT) In-Reply-To: (Julien Danjou's message of "Fri, 29 Apr 2011 11:04:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78603 Archived-At: 29/04/11 11:04, Julien Danjou > On Sun, Apr 24 2011, Antoine Levitt wrote: > >> Right now, with mm-text-html-renderer set to 'shr or 'gnus-w3m, loading >> images on slow servers takes ages, and hangs emacs (for instance, check >> out gwene.com.wordpress.terrytao, which has latex code rendered into >> lots of small images). 'w3m (with emacs-w3m installed) results in a nice >> smooth display, and does not hang emacs. >> >> Is there a setting I missed somewhere? If not, how feasible is it to add >> asynchroneous image retrieval to shr? Sorry if the subject has already >> come up, but I didn't find anything about it. > > AFAICT, the image downloading is already asynchronous. Really? I do see freezes that look like they are related to image downloading. Can you try rendering gwene.com.wordpress.terrytao for instance? Here, it freezes emacs for a few seconds, even on a fast connection, and C-ging it with toggle-debug-on-quit gives a backtrace to url-retrieve.