.NET Performance Optimization: Deferred Allocations
Petabridge Petabridge
2.29K subscribers
888 views
0

 Published On Feb 28, 2024

In this video we explore a powerful .NET performance optimization technique used by Akka.NET, Microsoft.Extensions, Logging, OpenTelemetry, and more: deferred allocation.

We recently used this technique ourselves to improve Phobos' performance by 161% over the course of 4 releases: https://petabridge.com/blog/net-perfo...

(00:00) Introduction
(00:25) Problem Context
(02:54) Visualizing the Problem
(04:16) Code [Before]
(06:51) Benchmarks [Before]
(07:26) Visualizing the Solution
(09:01) Code [After]
(11:32) Benchmarks [After]
(12:02) Value Enumerables
(13:12) Deferred Stringification
(14:13) Things to Remember

show more

Share/Embed