From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78666 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.gnus.general Subject: Re: Asynchroneous image retrieval in HTML rendering Date: Mon, 02 May 2011 19:24:06 +0200 Message-ID: <87k4e92eyx.fsf@gmail.com> References: <87bozwfw84.fsf@gmail.com> <87r58ll8jm.fsf@gmail.com> <87liys4x04.fsf@gmail.com> <87tydewilm.fsf@gmail.com> <87liyp35fy.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304357128 16912 80.91.229.12 (2 May 2011 17:25:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 May 2011 17:25:28 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M26968@lists.math.uh.edu Mon May 02 19:25: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 1QGws2-0008J8-11 for ding-account@gmane.org; Mon, 02 May 2011 19:25:18 +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 1QGwrM-0001Jl-NV; Mon, 02 May 2011 12:24:36 -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 1QGwrL-0001Jd-PO for ding@lists.math.uh.edu; Mon, 02 May 2011 12:24:35 -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 1QGwrH-0003IH-Qq for ding@lists.math.uh.edu; Mon, 02 May 2011 12:24:35 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QGwrG-0004tA-AH for ding@gnus.org; Mon, 02 May 2011 19:24:30 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QGwrD-0007p3-Fn for ding@gnus.org; Mon, 02 May 2011 19:24:27 +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 ; Mon, 02 May 2011 19:24:27 +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 ; Mon, 02 May 2011 19:24:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 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.0 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78666 Archived-At: 02/05/11 19:08, Lars Magne Ingebrigtsen > Lars Magne Ingebrigtsen writes: > >> So I'm going to rewrite this by adding a new library, called, er, >> url-queue.el, which has the same interface as `url-retrieve', but which >> manages the parallelism in a more sensible way, by not having more than >> (for instance) four connections going at the same time. > > I've now done this and pushed it to bzr Emacs. Give it a whirl and see > whether it makes any difference on articles with a lot of images that > are uncached. Old code: about 1min10 New code: about 1min30 ;) That's on gwene.com.wordpress.terrytao, after rm -rf .emacs.d/url/cache Which I guess means there's a small benefit in parallelizing as much as possible. But then again, that's an extreme case.