Skip to content

Commit

Permalink
Change allow unsafe code
Browse files Browse the repository at this point in the history
Gives libraries the possibility to use unsafe code to run faster, so it makes sense to enable it (especially to make the comparison to ENet fairer, since that is run through a C wrapper
  • Loading branch information
JohannesDeml committed Apr 6, 2023
1 parent f7e1de3 commit 23854f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions NetworkBenchmarkDotNet/NetworkBenchmarkDotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,13 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageProjectUrl>https://github.com/JohannesDeml/NetworkBenchmarkDotNet</PackageProjectUrl>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

</Project>

0 comments on commit 23854f1

Please sign in to comment.