Session
A Fistful of .NET Performance Tips & Tricks
With every yearly release, .NET is constantly evolving, from backend to frontend, from development through deployment. One of the central non-functional features of the platform is performance. A common discussion is the contrast between performance and readability. But with modern C#, this does not have to be a tradeoff. We can have our proverbial cake and eat it, too. The more important question, however, is whether a code change actually does improve the complexity in time and space.
This live coding session is not only designed to serve as a kick-off to performance awareness but also provides various tools and techniques you can apply to measure, compare, and evaluate different implementations by efficiency. Backed by practical examples, we will show how the combination of Alternate-Lookup and Span<> yields zero-overhead mapping, as well as how Collection Expressions grant one-shot initialization that reduces memory allocations on the managed heap, and much more. Additionally, we will deliver evidence of the reduction in CPU and GC pressure via profiling and benchmarking.
Empowered by the latest idioms of the C# programming language and supported by libraries and analyzers from the .NET ecosystem, we will uncover high-performance syntax and inspect the semantics of it, laying the foundation for achieving maximum scalability without sacrificing reliability nor testability.
Stefan Pölz
I C# .NET; @Sentry by day; @FlashOWare by night
Vienna, Austria
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top