From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: hidden buffers for async Date: Sun, 12 Jun 2005 06:30:06 -0400 Message-ID: References: <6dbd4d0005060619227dd41364@mail.gmail.com> <87vf4oaft8.fsf@zemdatav.stor.no-ip.org> <87vf4oaao5.fsf@kanga.tapsellferrier.co.uk> <87ll5ka5j7.fsf@zemdatav.stor.no-ip.org> <87is0oa35h.fsf_-_@kanga.tapsellferrier.co.uk> <874qc4tzbo.fsf@kanga.tapsellferrier.co.uk> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1118573474 31104 80.91.229.2 (12 Jun 2005 10:51:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Jun 2005 10:51:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 12 12:51:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DhQ2x-0002Pp-2E for ged-emacs-devel@m.gmane.org; Sun, 12 Jun 2005 12:50:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DhQ7W-0003m3-Be for ged-emacs-devel@m.gmane.org; Sun, 12 Jun 2005 06:55:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DhQ4C-0002px-3d for emacs-devel@gnu.org; Sun, 12 Jun 2005 06:51:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DhQ48-0002oF-PS for emacs-devel@gnu.org; Sun, 12 Jun 2005 06:51:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DhQ47-0002QK-Io for emacs-devel@gnu.org; Sun, 12 Jun 2005 06:51:44 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DhPkR-0003oW-Bh for emacs-devel@gnu.org; Sun, 12 Jun 2005 06:31:23 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DhPjC-0005xp-Vj; Sun, 12 Jun 2005 06:30:07 -0400 Original-To: Nic Ferrier In-reply-to: <874qc4tzbo.fsf@kanga.tapsellferrier.co.uk> (message from Nic Ferrier on Sat, 11 Jun 2005 21:26:19 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38630 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38630 The number of buffers would be 1:1 with the number of files being downloaded. Aggregating the data is the problem I was trying to avoid. Because the downloads all finish at different times it makes sorting the data difficult. When you say "sorting the data", do you mean that literally? What I would think of doing is simply looking thru the data assembling the contents that add up to one file, and saving it out when it is complete. I agree that downloading a lot of files will be silly. Perhaps I will set up a pool of 20 or so buffers for downloads and block or error when the pool is exhausted. That should work, if it is ok to do only 20 transfers in parallel. It should block, not error, when all are in use.