On Sat, 23 Jan 2010 18:52:01 +0200, Michael Snoyman <[email protected]> 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.
Haskell-Cafe mailing list