ngmoco/falcore — pull request #9 by dgrijalva (2012-04-21 23:59:28+00:00)
Title: Reuse conn buffer

Added a leaky bucket buffer pool to falcore.Server. Reusing bufio.Reader instances for new connections.

In the current version, we're allocating a new 8192 byte buffer every time a connection is opened. It becomes garbage when the client disconnects. This patch should drastically reduce the amount of garbage created.