Writing Allocation Free Code in C#
Performance is a feature. We all want our code to run faster, and there are plenty of ways to do this - caching, using a smarter algorithm or simply doing less stuff. In this session, we’re not going to look at any of that. Instead, we’re going to focus on a recent trend in the C# world - improving performance by reducing memory allocations. We’ll see how recent versions of C# allow using structs without creating lots of copies, and we’ll have a timely reminder on exactly what is the difference between a class and a struct. We’ll also spend some time with the new Span runtime type and find out how that can help work with slices of existing memory, and how it’s already into the types we know and love in the framework. And of course, we’ll take a look at when you should and (more importantly) shouldn’t use these new techniques.
EVENT:
Øredev 2018
SPEAKER:
Matthew Ellis
PERMISSIONS:
Conference Organizer provided Coding Tech with the permission to republish this video.
Other Videos By Coding Tech
2018-12-25 | What Can We Learn With JavaScript Fatigue |
2018-12-24 | Modern JS with ES6 |
2018-12-23 | Machine Learning at Uber (Natural Language Processing Use Cases) |
2018-12-22 | 32 Best Web Features of 2018 |
2018-12-21 | Breaking The Norm With Creative CSS |
2018-12-20 | Autonomous Testing and the Future of Software Development |
2018-12-20 | AI JavaScript Rocks |
2018-12-18 | Blazor, a New .NET Single Page Application Framework |
2018-12-17 | The State of JavaScript 2018 |
2018-12-17 | The Future of the Web |
2018-12-16 | Writing Allocation Free Code in C# |
2018-12-15 | Asynchronous Hamburgers |
2018-12-14 | Building ASP.NET Core Web APIs |
2018-12-14 | Artificial Intelligence: The Future of Software |
2018-12-12 | What’s New in Visual Studio 2019 |
2018-12-10 | Jedi Principles of UI Animation |
2018-12-08 | TypeScript: Static Types for JavaScript |
2018-12-08 | Mathematics of Animation |
2018-12-06 | Old vs New JavaScript |
2018-12-05 | Choosing Your JavaScript Framework |
2018-12-05 | Whats New in C# 8.0 |