[email protected]
[Top] [All Lists]

Re: [Haskell-cafe] Web application interface

Subject: Re: [Haskell-cafe] Web application interface
From: Nicolas Pouillard
Date: Sat, 23 Jan 2010 15:40:18 -0800 PST
On Sat, 23 Jan 2010 18:52:01 +0200, Michael Snoyman <[email protected]> wrote:
> Jeremy,
> What I meant is, if you use a sendfile system call to send raw files from
> the disk, how does this interact with gzip compression, which clearly cannot
> be used when using a sendfile call? I ask because you implied there were
> significant performance gains from using sendfile.

I guess you can either gzip the file to another temporary one and sendfile the
temporary gz one (even maybe cache it) or abandon sendfile and stream out a
gzip of file contents. The former could be more performant.


Nicolas Pouillard
Haskell-Cafe mailing list
[email protected]

<Prev in Thread] Current Thread [Next in Thread>