Back To Schedule
Wednesday, May 22 • 16:30 - 17:30
Writing Allocation Free Code in C#

Log in to save this to your schedule, view media, leave feedback and see who's attending!

Feedback form is now closed.
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<T> 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.

avatar for Matt Ellis

Matt Ellis

Matt Ellis is a developer advocate at JetBrains. He has spent 20 years shipping software and currently works with language tooling, having fun with abstract syntax trees and source code analysis. He owns and contributes to various open source projects, and believes in the open closed... Read More →

Wednesday May 22, 2019 16:30 - 17:30 CEST
Room 13