mochi/mochiweb — pull request #137 by jdhood1 (2014-09-24 20:23:36+00:00)
Title: Minimize calls to gen_tcp:send() to optimize performance.

Hey Bob,

It's Jeremy again. Here's the commit I wrote you about. If you wouldn't mind, make sure I didn't screw something up.

The unit tests with the word "hundred" in them indicate a 50 to 1 performance improvement with this change. The tests previously took 4.03 seconds to run and are now taking 0.08 seconds. That sounds way too good to be true. In the context of our system, we saw more like a 1.5% performance improvement.

Jeremy