[Haskell-cafe] Web application interface
nicolas.pouillard at gmail.com
Sat Jan 23 18:40:18 EST 2010
On Sat, 23 Jan 2010 18:52:01 +0200, Michael Snoyman <michael at snoyman.com> wrote:
> 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.
More information about the Haskell-Cafe