High Performance WEBrick on BSD #
Here’s a great hack by Eric Hodel: High Performance WEBrick (at the very bottom.) Which leverages his socket_sendfile and socket_accept_filter hacks to speed things up through system calls. Although he says these currently work only on BSD, you could probably swap in the sendfile gem, which is supported on Linux. (Found among the great stuff littered throughout ozmm’s tumblecast of the Silicon Valley conference.)
Toby
Mongrel has already been modified to use the sendfile gem to serve static files if you have it installed. sendfile also supports Solaris and the BSDs, as well as Linux.
drbrain
I’ve got a full write-up on my use of High Performance WEBrick on my blog here:
Image Serving with WEBrick
Zorbid
There’s a mouse hole in my cristall ball..
Comments are closed for this entry.