yesodweb/wai — pull request #86 by kazu-yamamoto (2012-06-22 01:49:34+00:00)
Title: Using sendfileWithHeader.

This patch makes ResponseFile drastically faster on Linux and FreeBSD by using sendfileWithHeader newly provided in the simple-sendfile package v0.2.4.

OLD means "without this patch"
NEW means "with this patch"

OLD+pronk NEW+pronk OLD+httperf NEW+httperf
Mac 3678.74 3415.76 6642.5 6891.8
FreeBSD 10.0010 1309.43 10.0	3174.8 # this machine is slow
Linux 24.9875 2558.36 25.0 8284.2