Using sendfileWithHeader. #86

merged 1 commit into from Jun 22, 2012

2 participants


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
@snoyberg snoyberg merged commit c3f7f89 into yesodweb:master Jun 22, 2012
Yesod Web Framework member

Looks great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment