Head to Head
summary
Live QA digs into concrete .NET oddities: a Linux .NET Core test run proves 6–10× slower than Windows, traced by isolating a single unit test, using Stopwatch and removing assertions to find a culture-aware string comparison optimization missing on Linux and a CLR fix plus a NUnit workaround is created; other answers show Enum.GetValues + Cast for enum iteration, why try/catch can change speed by ~30% (register vs stack use), and pitfalls of deep cloning with cycles and JSON serialization.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:15Diagnosing .NET Core performance
- 10:28Isolating unit test bottlenecks
- 16:42Q&A
- 21:39Enumerating C# enums
- 27:08Deconstruction and tuples in C#
- 35:48C# generics constraints
- 41:12Protected internal access modifier
- 43:00Why try-catch can speed up code
- 50:24Deep cloning object graphs
- 58:13JSON serialization references
- 1:00:06Closing remarks








