wyhaines: I have noticed that making several calls to send_data with small chunks of data is significantly slower than making a few calls with bigger chunks.
aman: ooh interesting
aman: any idea why
wyhaines: Yeah. So, when I send static files, I will aggregate strings together into one bigger string and accept the cost for that instead of the cost for several small sends.
wyhaines: I had started looking at the code that handles the send queue. It's _supposed_ to aggregate small chunks itself, but I think there's just something not working right in there.
wyhaines: I haven't looked at it enough to figure it out, though.
wyhaines: I do think there is a problem there, though.
wyhaines: The C++ code should be able to aggregate chunks more efficiently than doing it on the Ruby side.