filmov
tv
Turbocharged: Writing High-performance C# and .NET code, by Steve Gordon
Показать описание
In this session, you'll learn how to write C# code which executes faster and allocates less. This session is packed with practical examples and demos of where the latest high-performance APIs and language features can be applied in your applications.
During this session, we'll apply types such as Span and Memory to efficiently process data and parse strings. We'll examine System.IO.Pipelines, offering high-performance I/O, and we'll utilize ArrayPool to help reduce GC allocations. In .NET Core 3.0, we have new high-performance JSON APIs which we'll also add to our arsenal. Microsoft has made fantastic performance gains to the .NET Core framework – now it's time to apply them to your code!
We'll begin by discussing when and why performance matters in your applications. You'll learn how to measure your code, and use a data-driven approach to focus your optimisations.
These features can seem complicated, unapproachable, and difficult to apply. In this session, Steve introduces high-performance newcomers to the features, showing you how they work, where they can be applied, and how to measure performance improvements in your code.
This talk is for developers, who like Steve, are ready to begin their journey towards writing faster .NET code, which allocates less.
0:00 - Introduction
1:21 - What we will cover
2:18 - Aspects of performance
11:46 - Benchmark.NET
16:36 - Span of T
29:35 - Memory of T
31:00 - Practical Example: Key Builder
36:50 - Array Pool
39:14 - Pipelines
41:52 - Practical Example: CSV File Parsing
46:19 - System.Text.Json
47:59 - Practical Example: JSON Parsing
55:03 - Business Buy-In
59:12 - Summary
1:01:41 - Q&A
Speaker: Steve Gordon, Microsoft MVP, Pluralsight author and Senior .NET Engineer, Elastic
During this session, we'll apply types such as Span and Memory to efficiently process data and parse strings. We'll examine System.IO.Pipelines, offering high-performance I/O, and we'll utilize ArrayPool to help reduce GC allocations. In .NET Core 3.0, we have new high-performance JSON APIs which we'll also add to our arsenal. Microsoft has made fantastic performance gains to the .NET Core framework – now it's time to apply them to your code!
We'll begin by discussing when and why performance matters in your applications. You'll learn how to measure your code, and use a data-driven approach to focus your optimisations.
These features can seem complicated, unapproachable, and difficult to apply. In this session, Steve introduces high-performance newcomers to the features, showing you how they work, where they can be applied, and how to measure performance improvements in your code.
This talk is for developers, who like Steve, are ready to begin their journey towards writing faster .NET code, which allocates less.
0:00 - Introduction
1:21 - What we will cover
2:18 - Aspects of performance
11:46 - Benchmark.NET
16:36 - Span of T
29:35 - Memory of T
31:00 - Practical Example: Key Builder
36:50 - Array Pool
39:14 - Pipelines
41:52 - Practical Example: CSV File Parsing
46:19 - System.Text.Json
47:59 - Practical Example: JSON Parsing
55:03 - Business Buy-In
59:12 - Summary
1:01:41 - Q&A
Speaker: Steve Gordon, Microsoft MVP, Pluralsight author and Senior .NET Engineer, Elastic
Комментарии