File: HistogramBase.cs
private static readonly Regex TagValidation = new Regex("[, \\r\\n]", RegexOptions.Compiled);
On .NET 8 this should use the [GeneratedRegex] source generator, which produces fully AOT-safe, allocation-free regex matching with no startup compilation cost:
[GeneratedRegex("[, \\r\\n]")]
private static partial Regex TagValidation();
Minor on its own, but it's the right modern pattern and eliminates the compiled-regex warm-up allocation.
File:
HistogramBase.csOn .NET 8 this should use the
[GeneratedRegex]source generator, which produces fully AOT-safe, allocation-free regex matching with no startup compilation cost:Minor on its own, but it's the right modern pattern and eliminates the compiled-regex warm-up allocation.