.NET 9 HtmlEncode & UrlEncode perf improvements
Performance guru Stephen Toub has worked his magic again, this time improving the performance of HtmlEncode & UrlEncode.
Going by the PR, it looks like he uses a variety of techniques including utilizing SearchValues which was new in .NET 8.
Some of his benchmark timings below ...
#dotnet
ALT HtmlEncode & UrlEncode performance improvements in #dotnet 9
What do y’all use to urlencode/htmlencode/escape-encode (unicode, hex, octal) strings and files from the command line?
I coded my own set of tools but wondering if something already exists.