Andriy Tolstoy

Results 13 issues of Andriy Tolstoy

- avoid additional array allocation and conversion - avoid implicit checking of duplicates using `Union` method

- use [MaxBy](https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.maxby) method instead of [OrderByDescending ](https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.orderbydescending) and [First](https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.first) methods. - use [MinBy](https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.minby) method instead of [OrderBy](https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.orderby) and [First](https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.first) methods. ``` record KeyContainer(DateTime Created); [SimpleJob(RuntimeMoniker.Net80)] [MemoryDiagnoser] public class Benchmark...

Use [Append](https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.append) method instead of [ToList](https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.tolist) and [Add](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1.add) methods. ``` [SimpleJob(RuntimeMoniker.Net80)] [MemoryDiagnoser] public class Benchmark { private string clientId = "1"; [Benchmark] public void ToList_Add() { IEnumerable clients = [];...