ソースを参照

Remove extraneous conversion to byte string

Jon Skeet 17 年 前
コミット
25a2792283
1 ファイル変更0 行追加1 行削除
  1. 0 1
      src/ProtoBench/Program.cs

+ 0 - 1
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()));