Главная
Study mode:
on
1
Introduction
2
Garbage Collection
3
LowHanging Fruit
4
Reference Types and Value Types
5
Closures and Iterators
6
Value Types
7
Ref Returns
8
Ref ReadOnly
9
Method Argument Modifier
10
ReadOnly struct
11
Ref structs
12
SystemTextJason
13
Micro Benchmarks
14
Summary
Description:
Explore techniques for improving C# code performance by reducing memory allocations in this one-hour conference talk. Learn about using structs efficiently, understand the differences between classes and structs, and discover the benefits of the Span runtime type for working with memory slices. Examine recent C# features that enable allocation-free coding, including ref returns, readonly structs, and ref structs. Dive into practical examples using System.Text.Json and micro-benchmarks to measure performance improvements. Gain insights on when to apply these techniques and when to avoid them, ensuring optimal code performance without sacrificing readability or maintainability.

Writing Allocation Free Code in C#

NDC Conferences
Add to list