Several performance tweaks
- Removed default value assingment when default is equal to default(T)
- Added Benchmarks for most types and repeated/packed arrays
- Left PopsicleList's list fields uninitialized util needed
- Changed CodedInputStream's repated/packed reader
- Changed Enum writers to simply cast to int
- Changed the WriteEnum to use object rawValue that provides .ToString() if needed
- Should be fully on par with original library for performance, gaining 2x-3x in some cases
diff --git a/src/ProtocolBuffersLite.Test/TestProtos/UnitTestExtrasFullProtoFile.cs b/src/ProtocolBuffersLite.Test/TestProtos/UnitTestExtrasFullProtoFile.cs
index 5f9e3b5..8eb2dfb 100644
--- a/src/ProtocolBuffersLite.Test/TestProtos/UnitTestExtrasFullProtoFile.cs
+++ b/src/ProtocolBuffersLite.Test/TestProtos/UnitTestExtrasFullProtoFile.cs
@@ -393,7 +393,7 @@
public const int ZipFieldNumber = 5;
private bool hasZip;
- private uint zip_ = 0;
+ private uint zip_;
public bool HasZip {
get { return hasZip; }
}
@@ -597,7 +597,7 @@
public const int IdFieldNumber = 2;
private bool hasId;
- private int id_ = 0;
+ private int id_;
public bool HasId {
get { return hasId; }
}
@@ -1091,7 +1091,7 @@
public const int CountFieldNumber = 5;
private bool hasCount;
- private int count_ = 0;
+ private int count_;
public bool HasCount {
get { return hasCount; }
}
@@ -1257,7 +1257,7 @@
public const int IdFieldNumber = 2;
private bool hasId;
- private int id_ = 0;
+ private int id_;
public bool HasId {
get { return hasId; }
}
@@ -1656,7 +1656,7 @@
public const int IdFieldNumber = 2;
private bool hasId;
- private int id_ = 0;
+ private int id_;
public bool HasId {
get { return hasId; }
}