aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJon Skeet <skeet@pobox.com>2009-01-27 07:20:53 +0000
committerJon Skeet <skeet@pobox.com>2009-01-27 07:20:53 +0000
commit25a2792283ec695d3c038559ea0682f1d83d9bd3 (patch)
tree9a634392018b4a21d2e9261b837100aba2ae701c /src
parentdc254e76fc02eaf352b5e478accb25677f2c95b4 (diff)
downloadprotobuf-25a2792283ec695d3c038559ea0682f1d83d9bd3.tar.gz
protobuf-25a2792283ec695d3c038559ea0682f1d83d9bd3.tar.bz2
protobuf-25a2792283ec695d3c038559ea0682f1d83d9bd3.zip
Remove extraneous conversion to byte string
Diffstat (limited to 'src')
-rw-r--r--src/ProtoBench/Program.cs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ProtoBench/Program.cs b/src/ProtoBench/Program.cs
index 91604f3c..e23a4c5c 100644
--- a/src/ProtoBench/Program.cs
+++ b/src/ProtoBench/Program.cs
@@ -48,7 +48,6 @@ namespace Google.ProtocolBuffers.ProtoBench
MemoryStream inputStream = new MemoryStream(inputData);
ByteString inputString = ByteString.CopyFrom(inputData);
IMessage sampleMessage = defaultMessage.WeakCreateBuilderForType().WeakMergeFrom(inputString).WeakBuild();
- sampleMessage.ToByteString();
Benchmark("Serialize to byte string", inputData.Length, () => sampleMessage.ToByteString());
Benchmark("Serialize to byte array", inputData.Length, () => sampleMessage.ToByteArray());
Benchmark("Serialize to memory stream", inputData.Length, () => sampleMessage.WriteTo(new MemoryStream()));