about summary refs log tree commit diff
path: root/Benchmarks/Program.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-02-18 07:41:20 +0100
committerRory& <root@rory.gay>2025-02-18 07:41:20 +0100
commit373e3a481e9b16b328002426d416344a87ef1058 (patch)
tree17b50a14479099eba4b2ab490ffd5b28cd12c440 /Benchmarks/Program.cs
parentVarious changes (diff)
downloadMatrixUtils-373e3a481e9b16b328002426d416344a87ef1058.tar.xz
Some cleanup
Diffstat (limited to 'Benchmarks/Program.cs')
-rw-r--r--Benchmarks/Program.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Benchmarks/Program.cs b/Benchmarks/Program.cs

index b85fc24..90d004a 100644 --- a/Benchmarks/Program.cs +++ b/Benchmarks/Program.cs
@@ -1,7 +1,10 @@ // See https://aka.ms/new-console-template for more information +using System; using System.Collections.Frozen; +using System.Collections.Generic; using System.Collections.Immutable; +using System.Linq; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Configs; using BenchmarkDotNet.Engines; @@ -262,7 +265,7 @@ public class Program { if (!DoDisambiguate || !DisambiguateKnockActions || !DisambiguateKnockRejected) _map[MembershipTransition.KnockRejected] = MembershipTransition.Leave; if (!DoDisambiguate || !DisambiguateKnockActions || !DisambiguateKnockRetracted) _map[MembershipTransition.KnockRetracted] = MembershipTransition.Leave; FrozenDictionary<MembershipTransition, MembershipTransition> map = _map.ToFrozenDictionary(); - _map = null!; + // _map foreach (var entry in entries) { var newState = map.TryGetValue(entry.State, out var value) ? value : entry.State; yield return newState == entry.State ? entry : entry with { State = newState };