hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

High Performance WEBrick on BSD #

by why in inspect

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.)

said on 25 Apr 2006 at 17:27

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.

said on 25 Apr 2006 at 19:09

I’ve got a full write-up on my use of High Performance WEBrick on my blog here:

Image Serving with WEBrick

said on 26 Apr 2006 at 03:33

There’s a mouse hole in my cristall ball..

Comments are closed for this entry.