LinqFaster
LinqFaster copied to clipboard
Linq-like extension functions for Arrays, Span<T>, and List<T> that are faster and allocate less.
``` void Main() { var max = 999999; var nums = Enumerable.Range(0, max + 1).ToArray(); Console.WriteLine(nums.ContainsS(max)); Console.WriteLine(nums.Contains(max)); } ``` Outputs > False > True Or another more simple example: ```...
Love this project. Has made some huge performance improvements on some large datasets using linq. Question, is there a reason why GroupBy is not available? or is this a method...
Unity doesn't have nuget. Unity has only UPM. Which have feature: "Add plugin via git". Add packages to Unity project is more comfortably then via sources from zip This tutorial...
Currently DistinctInPlaceF is crashing when called on an empty collection. The error thrown is System.ArgumentOutOfRangeException : Index was out of range. Must be non-negative and less than the size of...
TLDR: Indicates that a type or method is pure, that is, it does not make **any** visible **state** changes. See https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.contracts.pureattribute?view=netframework-4.8
- Convert SumF function into a generic function - Add new managed types (sbyte, byte, short, ushort, int, uint, long, ulong) - Add tests for some of the new types...
  [Benchmark] public double IntSpanFirstForEach() { Span asSpan = intArray.AsSpan(); foreach (int i in asSpan) { if (firstInts(i)) { return i; } } return 0; } [Benchmark] public double...
Currently the Target Framework is .net4.6.1 It would be nice if the benefits of .net4.8 where also targeted in the dll binaries, and shown in the benchmarks
Both versions of this to work with `List, Array[T], Span, ReadOnlySpan` and `IReadOnlyList` If the source is null or empty, then default to creating an array so that max speed...