mojombo/bertrpc — pull request #12 by charliesome (2014-09-19 04:01:49+00:00)
Title: Use IO#read rather than repeated calls to Socket#recvfrom

Turns out this method is a bit of a hot spot (see https://github.com/github/github/issues/31521#issuecomment-56088039).

Using `IO#read` with a Ruby timeout reduces the time taken to serve a 100mb blob from 14.4 seconds to 3.5 seconds on a lab machine.

cc @github/perf @github/gitrpc