Regex TagValidation — [GeneratedRegex] Source Generator
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 55/100
- Tipo di issue
- Refactoring
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- csharp
- Ambito
- performance
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C#
- Stelle
- 185
- Fork
- 31
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di HdrHistogram/HdrHistogram.NET
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
HdrHistogram/HdrHistogram.NET#167 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
HdrHistogram/HdrHistogram.NET#166 ·
-
WriterReaderPhaser.FlipPhase - Task.Yield().GetAwaiter().GetResult() is a Thread Pool Anti-Pattern Apertaagent enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
HdrHistogram/HdrHistogram.NET#144 ·
-
agent enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
HdrHistogram/HdrHistogram.NET#142 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
HdrHistogram/HdrHistogram.NET#156 ·
Tutte le issue di HdrHistogram/HdrHistogram.NET
Issue simili
-
core dependencies
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
-
bug frontend good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Down / Waiting for removal
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100