site image
Andrew Lock avatar

Andrew Lock

Performance
  1. Loading...
  2. Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

    30% off with code ANDREW30 on Dometrain Pro
  3. ASP.NET Core in Action, Third Edition

    My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

  4. Banner image for Making foreach on an IEnumerable allocation-free using reflection and dynamic methods

    Making foreach on an IEnumerable allocation-free using reflection and dynamic methods

    In this post I describe why foreach sometimes allocates, and show how you can use DynamicMethod and Reflection.Emit to go allocation-free…

     in  Performance.NET CoreDatadog
  5. Banner image for Creating a .NET CLR profiler using C# and NativeAOT with Silhouette

    Creating a .NET CLR profiler using C# and NativeAOT with Silhouette

    In this post I look at how to create a simple .NET profiler. But instead of using C++, the profiler uses C# and NativeAOT with the Silhouette library…

     in  .NET CoreC#PerformanceNative AOT
  6. Banner image for Easier reflection with [UnsafeAccessorType] in .NET 10

    Easier reflection with [UnsafeAccessorType] in .NET 10

    Exploring the .NET 10 preview - Part 9

    In this post I show how to work with [UnsafeAccessor] to do 'easier' reflection and how to use .NET 10's [UnsafeAccessorType] with types you can't reference…

     in  .NET 10Performance
  7. Banner image for Using default interface methods for performance gains in IHeaderDictionary

    Using default interface methods for performance gains in IHeaderDictionary

    In this post I look at an example of how default interfaces were used to improve the performance of IHeaderDictionary…

  8. Banner image for A brief look at StringValues

    A brief look at StringValues

    In this post I look at the StringValues type, where it's used in ASP.NET Core, why it's useful, how it's implemented, and why.…

  9. Banner image for ValueStringBuilder: a stack-based string-builder

    ValueStringBuilder: a stack-based string-builder

    A deep dive on StringBuilder - Part 6

    In this post I discuss the ValueStringBuilder type, used internally in .NET as a zero/low-allocation alternative to StringBuilder…

Andrew Lock | .Net Escapades
Want an email when
there's new posts?