site image
Andrew Lock avatar

Andrew Lock

Performance
  1. Loading...
  2. Sponsored by Nick Chapsas—Want to learn how to build elegant REST APIs in .NET? Get 5% off Nick's latest course "From Zero to Hero: REST APIs in .NET"!

    From Zero to Hero: REST APIs in .NET
  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 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…

     in  ASP.NET Core C# Source Code Dive Performance
  5. 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.…

     in  ASP.NET Core C# Source Code Dive Performance
  6. 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…

     in  .NET Core C# Source Code Dive Performance
  7. Banner image for Reducing allocations by caching with StringBuilderCache

    Reducing allocations by caching with StringBuilderCache

    A deep dive on StringBuilder - Part 5

    In this post I look at the internal StringBuilderCache type, benchmark it against a StringBuilder, and walk through the code to show how it works.…

     in  .NET Core C# Source Code Dive Performance
  8. Banner image for Inserting and removing characters

    Inserting and removing characters

    A deep dive on StringBuilder - Part 4

    In this post we look at the Insert() and Remove() functions, which can involve tricky manipulations of chunks in the middle of the linked list…

     in  .NET Core C# Source Code Dive Performance
  9. Banner image for Converting chunks to a string with ToString()

    Converting chunks to a string with ToString()

    A deep dive on StringBuilder - Part 3

    In this post I look at StringBuilder.ToString(), show how multiple chunk arrays are converted to a string, and compare it to .NET Framework's approach.…

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