nlf/protobuf.js — pull request #19 by nlf (2014-01-15 18:48:34+00:00)
Title: Performance

So this alters things to use two loops. One to calculate overall length, one to actually write the data direct to a buffer rather than using an array as an intermediate step.

Performance increase due to this ranges between somewhat significant to holy wow that's faster, depending on data type.