Stackalloc and Spans
Allocating memory on the heap can slow a program down by creating work for the .NET garbage collector. In C# we can improve performance by using the stack instead. Source code available at: https://github.com/JasperKent/Spans-a... Topics include: Referencing contiguous memory with Span and ReadOnlySpan Allocating on the stack with stackalloc Writing high performance methods with zero heap allocation Avoiding the need for unsafe code Fast text parsing

▶︎
Inside C#: Stack & Heap, Value Types, Boxing, stackalloc + More

▶︎
The Dispose Pattern

▶︎
Writing Allocation Free Code in C# - Matt Ellis

▶︎
.NET Core Garbage Collection

▶︎
Memory Allocation in C# | Stack vs Heap (Value Types & Reference Types)

▶︎
Discriminated Unions Are Finally in .NET But

▶︎
C# Fundamentals - Stack, Heap, and References

▶︎
Turbocharged: Writing High-Performance C# and .NET Code - Steve Gordon - NDC Oslo 2024

▶︎
Working with Spans and Strings

▶︎
Turbocharged: Writing High-Performance C# and .NET Code - Steve Gordon - NDC Porto 2024

▶︎
C# Yield Return: What is it and how does it work?

▶︎
Deep .NET: A Complete .NET Developer's Guide to Span with Stephen Toub and Scott Hanselman

▶︎
Real-world examples on optimizing .NET performance - Stefán Jökull Sigurðarson - NDC Oslo 2023

▶︎
How to Actually Learn C (2027 Edition)

▶︎
High-performance code design patterns in C#. Konrad Kokosa .NET Fest 2019

▶︎
IAsyncEnumerable and Yield Return

▶︎
Jeffrey Richter «Efficient Buffer Manipulation using C# 7.2's Span»

▶︎
Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

▶︎
What is Span in C# and why you should be using it

▶︎
