-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging 'dev' branch for release 1.1.0.
- Update package information for version 1.1.0 - Updated github pages documentation markdown files. - Ran new benchmarks and included the new results. - Introduced the 'InterlockedOps' class and corresponding unit tests. - Annotated a number of 'medium' and 'long' run tests with the proper trait marker attributes - Refactored, removed, and replaced some unit tests for better organization - Cleaned up a number of internal types for the MemoryStreamSlim functionality - Added the ability for a memory segment group to expand and include new available segments instead of adding to the segment group list for performance gains.
- Loading branch information
Showing
96 changed files
with
12,587 additions
and
1,343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
Source/Dev/KZDev.PerfUtils.Examples/InterlockedOperations/ConditionAndExample.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace KZDev.PerfUtils.Examples | ||
{ | ||
public class ConditionXorExample | ||
{ | ||
private int _flags; | ||
|
||
public bool ToggleFlags (Predicate<int> condition, int flagBits) | ||
{ | ||
(int originalValue, int newValue) = InterlockedOps.ConditionXor(ref _flags, condition, flagBits); | ||
return originalValue != newValue; | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
Source/Dev/KZDev.PerfUtils.Examples/InterlockedOperations/ConditionClearBitsExample.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace KZDev.PerfUtils.Examples | ||
{ | ||
public class ConditionClearBitsExample | ||
{ | ||
private int _flags; | ||
|
||
public bool ClearFlags<T> (Func<int, T, bool> condition, T conditionArgument, int flagBits) | ||
{ | ||
(int originalValue, int newValue) = InterlockedOps.ConditionClearBits(ref _flags, condition, conditionArgument, flagBits); | ||
return originalValue != newValue; | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
Source/Dev/KZDev.PerfUtils.Examples/InterlockedOperations/XorExample.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace KZDev.PerfUtils.Examples | ||
{ | ||
public class XorExample | ||
{ | ||
private int _flag; | ||
|
||
public bool ToggleFlag () | ||
{ | ||
int originalValue = InterlockedOps.Xor(ref _flag, 1); | ||
return originalValue == 0; | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
Source/Dev/KZDev.PerfUtils.Examples/KZDev.PerfUtils.Examples.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Folder Include="MemoryStreamSlim\" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\Src\KZDev.PerfUtils\KZDev.PerfUtils.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
240 changes: 120 additions & 120 deletions
240
...les/MemoryStreamBenchmarks.BulkFillAndReadThroughputBenchmarks-report-github.md
Large diffs are not rendered by default.
Oops, something went wrong.
242 changes: 121 additions & 121 deletions
242
Source/Docs/articles/MemoryStreamBenchmarks.BulkFillAndReadThroughputBenchmarks-report.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.