s2js/rest — pull request #22 by briancavalier (2013-02-22 17:46:55+00:00)
Title: Use Buffer.concat instead of string concat

[Supposedly](http://www.maurer.me/articles/nodejs-string-building-buffers-arrays-and-concatenation/2011112001/), collecting an array of buffers as `'data'` events are emitted, and then using [`Buffer.concat`](http://nodejs.org/api/buffer.html#buffer_class_method_buffer_concat_list_totallength) to concatenate the whole lot once you've received the `'end'` event is more efficient (time and space) than [using `+=` to concat strings](https://github.com/s2js/rest/blob/master/client/node.js#L93). Might be a nice, simple optimization.