Regex TagValidation — [GeneratedRegex] Source Generator
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 55/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- performance
Research direction
Open HistogramBase.cs and inspect the TagValidation declaration and its uses. Confirm the project targets .NET 8, then apply the stated GeneratedRegex pattern and run the existing test suite. Done means tag validation still works while using the source-generator form instead of the compiled Regex construction.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- C#
- Stars
- 185
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from HdrHistogram/HdrHistogram.NET
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
HdrHistogram/HdrHistogram.NET#167 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
HdrHistogram/HdrHistogram.NET#166 ·
-
WriterReaderPhaser.FlipPhase - Task.Yield().GetAwaiter().GetResult() is a Thread Pool Anti-PatternOpenagent enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
HdrHistogram/HdrHistogram.NET#144 ·
-
agent enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
HdrHistogram/HdrHistogram.NET#142 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
HdrHistogram/HdrHistogram.NET#156 ·
All issues in HdrHistogram/HdrHistogram.NET
Similar issues
-
copilot documentation
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 2 days
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 4 days
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
spectreconsole/spectre.console#2221 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
godotengine/godot-docs#12428 ·
Maintainers usually reply within 1 day