I’m using Camping (though I suspect this applies to RoR just as well,
and if you have an RoR specific answer I’d be happy to hear it, I may
switch) to do a number of things for an internal application, one of
which is transferring large files (~2GB each) between machines over the
network. I thought the easy route would just be to make an app that
when given the filename, serves you the file with the x-sendfile header.
However this is proving to be very, very, slow - I can transfer files
via SCP at about 30 mb/s over the network, whereas via Camping the file
is served at about 4 mb/s.
I’m running on WEBrick with Ruby 1.8.6. Any thoughts on what the issue
is? It seems like Ruby is doing a lot more work than it needs to, I
don’t know if it’s WEBrick (I’ve heard it is slow) or what.