HtmlDecode performance improvements in .NET 7

.NET 7 has significantly improved the performance of WebUtility.HtmlDecode 💪🏻 …

The previous implementation had been manually iterating through each character in the input looking for a '&' to be unescaped. dotnet/runtime#70700 deletes the entire searching function and replaces it with IndexOf, yielding simpler and much faster code

Leave a Reply

Your email address will not be published.