4 ms·
C# has also recently put a lot of work into speeding up regex. MS put up a post about it a while ago going into the specifics. I expected the vectorization. I d
by cl0ckt0wer 4y ago
C# has also recently put a lot of work into speeding up regex. MS put up a post about it a while ago going into the specifics. I expected the vectorization. I did not expect source code generation.
https://devblogs.microsoft.com/dotnet/regular-expression-improvements-in-dotnet-7/ https://devblogs.microsoft.com/dotnet/regular-expression-imp...
- neonsunset 4y agoSeconding the comment, .NET 7 has seen massive improvements to Regex performance on all platforms supported by .NET. Char sequence matching will use respective SSE4/AVX2/AdvSimd instruction sets and for compiled regexes, efficient automata will be emitted. Those two combined produce state-of-the-art regex matching performance.