You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 03d8bb9
Browse filesBrowse the repository at this point in the historyBrowse files
Use mixed type-handle hashes in CoreCLR, preserving COM identity hashing
(Windows only).
```cs
using System;
using System.Collections.Generic;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
BenchmarkSwitcher.FromAssembly(typeof(Bench).Assembly).Run(args);
public class Bench {
private readonly Dictionary<Type, int> _dictionary = new() { [typeof(string)] = 42 };
[Benchmark]
public int Lookup() => _dictionary[typeof(string)];
}
```
up to [25% faster](EgorBot/Benchmarks#623).
---------
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 3ed54863-8a13-437b-aa0a-a6f356b253ed
Copilot-Session: 033db876-d232-451a-94ab-ed732694508a
0 commit comments