[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [FEATURE Request] Built-in server should support a thunk as body
From: |
Nala Ginrut |
Subject: |
Re: [FEATURE Request] Built-in server should support a thunk as body |
Date: |
Tue, 26 Aug 2014 14:38:21 +0800 |
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