Performance Pitfalls in C# / .NET – List Contains (richardcocks.github.io) 2 points by eterm 1y ago ↗ HN
[–] eterm 1y ago ↗ In this post, I looked at the performance of a popular helper method suggested in the csharp subreddit, a way to avoid using List.Contains.It looks at the impact of params ReadOnlySpan<T>, of switching to if statements, and how net8 stacks up to the preview net10.
1 comment of 4
[ 2.9 ms ] story [ 35.0 ms ] threadIt looks at the impact of params ReadOnlySpan<T>, of switching to if statements, and how net8 stacks up to the preview net10.