commit | 6a0126340a3767cc6f4988b861f1340ce6a747ea | [log] [tgz] |
---|---|---|
author | Ben Harper <rogojin@gmail.com> | Sun Mar 08 21:39:01 2015 +0200 |
committer | Wouter van Oortmerssen <wvo@google.com> | Wed Mar 11 17:27:39 2015 -0700 |
tree | a3f10c06fffcaab369cd5bbb4c0d0996efc6bfc9 | |
parent | 4464405250ee9151177d3f4b88fb9959c924ad37 [diff] |
Add CreateByteVector function to Go's builder This function gets around the inefficiency of populating a [ubyte] vector byte by byte. Since ubyte vectors are probably the most commonly used type of generic byte buffer, this seems like a worthwhile thing to create a fast path for. Benchmarks show a 6x improvement in throughput on x64. There is a new test verifying the functionality of the function. Change-Id: I82e0228ae0f815dd7ea89bf168b8c1925f3ce0d7