diff options
author | csharptest <roger@csharptest.net> | 2011-06-09 19:47:56 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-06-09 19:47:56 -0500 |
commit | ced18e10ae9ca41f338c9e788642d705dd17f9d4 (patch) | |
tree | 334ca02758aca596df2b71fb4ada50db71aa4913 /src/ProtoBench/ProtoBench.csproj | |
parent | 367e02261c6bee9bce37cb6942bd6cbf743fb67c (diff) | |
download | protobuf-ced18e10ae9ca41f338c9e788642d705dd17f9d4.tar.gz protobuf-ced18e10ae9ca41f338c9e788642d705dd17f9d4.tar.bz2 protobuf-ced18e10ae9ca41f338c9e788642d705dd17f9d4.zip |
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
Diffstat (limited to 'src/ProtoBench/ProtoBench.csproj')
-rw-r--r-- | src/ProtoBench/ProtoBench.csproj | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ProtoBench/ProtoBench.csproj b/src/ProtoBench/ProtoBench.csproj index f55764e5..74e3ef50 100644 --- a/src/ProtoBench/ProtoBench.csproj +++ b/src/ProtoBench/ProtoBench.csproj @@ -59,6 +59,12 @@ <Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="..\ProtocolBuffers.Test\TestProtos\UnitTestImportProtoFile.cs">
+ <Link>UnitTestImportProtoFile.cs</Link>
+ </Compile>
+ <Compile Include="..\ProtocolBuffers.Test\TestProtos\UnitTestProtoFile.cs">
+ <Link>UnitTestProtoFile.cs</Link>
+ </Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
|