You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Match a character in the set [0-9] exactly 24 times.
{
- if (slice.Slice(2, 24).IndexOfAnyExceptInRange('0', '9') >= 0)+ if (slice.Slice(2, 24).ContainsAnyExceptInRange('0', '9'))
{
return false; // The input didn't match.
}
Total bytes of base: 53924200
Total bytes of diff: 53924088
Total bytes of delta: -112 (-0.00 % of base)
Total relative delta: -0.02
diff is an improvement.
relative diff is an improvement.
conststringJsonPath="RegexResults-978.json";if(!File.Exists(JsonPath)){awaitusingvararchiveStream=awaitnewHttpClient().GetStreamAsync("https://mihubot.xyz/r/EogtjSRA");usingvararchive=newZipArchive(archiveStream,ZipArchiveMode.Read);archive.Entries.First(e =>e.Name=="Results.json").ExtractToFile(JsonPath);}usingFileStreamjsonFileStream=File.OpenRead(JsonPath);RegexEntry[]entries=JsonSerializer.Deserialize<RegexEntry[]>(jsonFileStream,newJsonSerializerOptions{IncludeFields=true})!;Console.WriteLine($"Working with {entries.Length} patterns");recordKnownPattern(stringPattern,RegexOptionsOptions,intCount);sealedclassRegexEntry{publicrequiredKnownPatternRegex{get;set;}publicrequiredstringMainSource{get;set;}publicrequiredstringPrSource{get;set;}publicstring?FullDiff{get;set;}publicstring?ShortDiff{get;set;}public(stringName,stringValues)[]?SearchValuesOfChar{get;set;}public(string[]Values,StringComparisonComparisonType)[]?SearchValuesOfString{get;set;}}
Job completed in 15 minutes 44 seconds (remote runner delay: 1 minute 26 seconds).
dotnet/runtime#112065
Using arguments:
regexdiff
118 out of 18857 patterns have generated source code changes.
Examples of GeneratedRegex source diffs
"^[a-f0-9]{32}$" (4920 uses)
"\"([a-fA-F0-9-\\{\\}]{36})\"" (569 uses)
"^[a-z0-9]{24}$" (285 uses)
"^[0-9a-f]{40}$" (202 uses)
"\\A(?:[A-Z0-9]{17})\\z" (182 uses)
"^\\\\((?<StoreLocation>CurrentUser|LocalMach ..." (167 uses)
"IR[0-9]{24}" (144 uses)
"^committed\\s+changeset\\s+\\d+:(?<hash>[0-9 ..." (132 uses)
"^[A-Fa-f0-9]{32}$|^({|\\()?[A-Fa-f0-9]{8}-([ ..." (130 uses)
"asmz://(?<guid>[0-9a-fA-F]{32})/(?<size>[0-9 ..." (99 uses)
For more diff examples, see https://gist.github.com/MihuBot/47c9e3e7aadcb5bd85d2a8b35243f90d
For a list of JIT diff improvements, see Improvements.md
Sample source code for further analysis
Artifacts:
The text was updated successfully, but these errors were encountered: