This site uses cookies to make your browsing experience better. By using this site you agree to our use of cookies.

Optimise your code with visual studio's profiler

Speaker Name: Lachlan Barclay
Speaker Website:

When code is running slow, most people start guessing at what the problem is, based on their previous experience. The problem is it's so easy to be wrong, and you can waste a huge amount of time fixing the wrong stuff! So how do you take the guesswork out and start making measurable differences? Visual Studio's profiler is a killer tool for working out what's slow. This workshop will cover the profiler extensively and give you the tools to make huge performance improvements to your app. In this workshop we will cover:

  • Running the performance profiler
  • CPU Sampling vs instrumentation
  • Optimising disk access
  • The problem with exceptions
  • Caching reference data to improve performance
  • String concatenation (everyone's favourite!)
  • The trouble with reflection
  • Making the most of your CPU
  • Reducing garbage collections and memory allocation
  • Async and Await, how they can hinder and how it can help
  • BenchmarkDotNet
  • Scaling out vs Scaling up

By the end of this workshop you'll be able to profile your code and work out where the bottlenecks are and know how to fix them.


To participate in this workshop you'll need the following tools installed:

  • Visual Studio 2019
  • Dotnet core 3.1
  • LocalDb (or SQL Server)

Register your interest

If you're interested in attending this workshop please let me know:

Other workshops from this speaker:

Porting your ASP.NET app from framework to core