From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.devel Subject: Re: [FEATURE Request] Built-in server should support a thunk as body Date: Tue, 26 Aug 2014 14:38:21 +0800 Organization: HFG Message-ID: <1409035101.16384.12.camel@Renee-desktop.suse> References: <1408951506.3269.11.camel@Renee-desktop.suse> <877g1wsr10.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <1409031006.16384.10.camel@Renee-desktop.suse> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1409035139 3460 80.91.229.3 (26 Aug 2014 06:38:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Aug 2014 06:38:59 +0000 (UTC) Cc: guile-devel@gnu.org To: David Thompson Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Aug 26 08:38:52 2014 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XMAP5-0003Tc-S6 for guile-devel@m.gmane.org; Tue, 26 Aug 2014 08:38:51 +0200 Original-Received: from localhost ([::1]:52006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMAP5-0001mY-FL for guile-devel@m.gmane.org; Tue, 26 Aug 2014 02:38:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMAOr-0001mG-EU for guile-devel@gnu.org; Tue, 26 Aug 2014 02:38:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMAOi-0002sE-Ch for guile-devel@gnu.org; Tue, 26 Aug 2014 02:38:37 -0400 Original-Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]:51536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMAOi-0002rw-4g for guile-devel@gnu.org; Tue, 26 Aug 2014 02:38:28 -0400 Original-Received: by mail-pa0-f47.google.com with SMTP id kx10so22650724pab.6 for ; Mon, 25 Aug 2014 23:38:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :organization:content-type:mime-version:content-transfer-encoding; bh=NM/HxyJFvdUU1THX+Mv8wpD1xWMePPBNuL1bE0oRUFY=; b=VagAEqCNspbvNJKX5JigeUqJ6l4q6nFaMXJstJzSm5Y1DFLIUw6YL1ymhZG/iRIFaJ 534g+FgPEzswzs66eSwbGF4MOv2L54sIH2h8M6Z5eQ03c5H0/nhFtENPvMoXK8ONGnhn n4lU4wA6URB1qbhY5MaHKNTCbbZ9Pnap3Sab2vY+5mUSkwfapKCRGdc1MXhKc7GRYL8b ks7CxQnpXS9w9tk+kVabr8/vvn4acQv381W42gLYBls+eoZeY7n0fTTRKAP9z5N0U1Ze 6zgVKSabRAFKSMrJ2QgL/nuFTCjNV5WUGd74SQAwNHb7kXjF6Riz/kEUlUuHxulOdmcO zaMw== X-Received: by 10.66.169.42 with SMTP id ab10mr17148210pac.138.1409035106935; Mon, 25 Aug 2014 23:38:26 -0700 (PDT) Original-Received: from [147.2.147.174] ([203.192.156.9]) by mx.google.com with ESMTPSA id ic5sm1891250pbb.3.2014.08.25.23.38.23 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Mon, 25 Aug 2014 23:38:25 -0700 (PDT) In-Reply-To: <1409031006.16384.10.camel@Renee-desktop.suse> X-Mailer: Evolution 3.4.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22f X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17369 Archived-At: On Tue, 2014-08-26 at 13:30 +0800, Nala Ginrut wrote: > I attached the patch here. > The patch works for me. And I've tested it compared to the old way, say, > read the content to memory then pass it as the body then send to the > client. > > Please test this feature with bigger file (larger than 20MB), the small > file is hard to show the difference. > > On average, the old way is 5 times slower than new way (10s vs. 50s). Sorry for typo, 0.010s vs. 0.050s