TooTallNate / ref

Turn Buffer instances into "pointers"
http://tootallnate.github.com/ref
453 stars 141 forks source link

Reduce cost by pushing message assembly down. #39

Closed dan-tull closed 8 years ago

dan-tull commented 8 years ago

JSON.stringify can be expensive, so only take the hit when the assert will throw.

Fixes TooTallNate/ref#38.

TooTallNate commented 8 years ago

Thanks!