Info
Version: | 7.1.2 |
Author(s): | Microsoft.Toolkit |
Last Update: | Thursday, November 18, 2021 |
.NET Fiddle: | Online Example |
Project Url: | https://github.com/CommunityToolkit/WindowsCommunityToolkit |
NuGet Url: | https://www.nuget.org/packages/Microsoft.Toolkit.HighPerformance |
Install
Install-Package Microsoft.Toolkit.HighPerformance
dotnet add package Microsoft.Toolkit.HighPerformance
paket add Microsoft.Toolkit.HighPerformance
Microsoft.Toolkit.HighPerformance Download (Unzip the "nupkg" after downloading)
Dependencies
.NETStandard 2.0
- Microsoft.Bcl.HashCode(>= 1.1.0)
- System.Memory(>= 4.5.4)
- System.Runtime.CompilerServices.Unsafe(>= 5.0.0)
- System.Threading.Tasks.Extensions(>= 4.5.4)
- System.Runtime.CompilerServices.Unsafe(>= 5.0.0)
- System.Runtime.CompilerServices.Unsafe(>= 5.0.0)
- NETStandard.Library(>= 1.6.1)
- System.Diagnostics.Contracts(>= 4.3.0)
- System.Drawing.Primitives(>= 4.3.0)
- System.Memory(>= 4.5.4)
- System.Numerics.Vectors(>= 4.5.0)
- System.Runtime.CompilerServices.Unsafe(>= 5.0.0)
- System.Threading.Tasks.Extensions(>= 4.5.4)
- System.Threading.Tasks.Parallel(>= 4.3.0)
- System.Runtime.CompilerServices.Unsafe(>= 5.0.0)
Tags
- Memory2D<T> and Span2D<T>: two types providing fast and allocation-free abstraction over 2D memory areas.
- ArrayPoolBufferWriter<T>: an IBufferWriter<T> implementation using pooled arrays, which also supports IMemoryOwner<T>.
- MemoryBufferWriter<T>: an IBufferWriter<T>: implementation that can wrap external Memory<T>: instances.
- MemoryOwner<T>: an IMemoryOwner<T> implementation with an embedded length and a fast Span<T> accessor.
- SpanOwner<T>: a stack-only type with the ability to rent a buffer of a specified length and getting a Span<T> from it.
- StringPool: a configurable pool for string instances that be used to minimize allocations when creating multiple strings from char buffers.
- String, array, Memory<T>, Span<T> extensions and more, all focused on high performance.
- HashCode<T>: a SIMD-enabled extension of HashCode to quickly process sequences of values.
- BitHelper: a class with helper methods to perform bit operations on numeric types.
- ParallelHelper: helpers to work with parallel code in a highly optimized manner.
- Box<T>: a type mapping boxed value types and exposing some utility and high performance methods.
- Ref<T>: a stack-only struct that can store a reference to a value of a specified type.
- NullableRef<T>: a stack-only struct similar to Ref<T>, which also supports nullable references.