[GeneratedRegex] Is Not Optional — Compiled Regex Is Dead
new Regex(…, RegexOptions.Compiled) allocates at startup and hides patterns from the JIT. Source-generated regex is faster, safer, and enforced at build time.
new Regex(…, RegexOptions.Compiled) allocates at startup and hides patterns from the JIT. Source-generated regex is faster, safer, and enforced at build time.