Parser rewrite
This commit is contained in:
@@ -43,16 +43,13 @@ public static class Program
|
||||
|
||||
Time("SearchExpression", () => Extractors.SearchExpression(pdx, query));
|
||||
Time("FullParse", () => Extractors.FullParseThenSelect(pdx));
|
||||
Time("Regex flat compiled",
|
||||
() => Extractors.RegexScan(new Regex(Extractors.FlatPattern, RegexOptions.Compiled), text));
|
||||
Time("Regex path aware compiled",
|
||||
() => Extractors.RegexScan(new Regex(Extractors.PathAwarePattern, RegexOptions.Compiled), text));
|
||||
Time("Regex path aware nonbacktracking",
|
||||
() => Extractors.RegexScan(new Regex(Extractors.PathAwarePattern, RegexOptions.NonBacktracking), text));
|
||||
Time("Regex balanced two stage",
|
||||
() => Extractors.RegexTwoStage(new Regex(Extractors.CountriesBlockPattern, RegexOptions.Compiled),
|
||||
new Regex(Extractors.FlatPattern, RegexOptions.Compiled), text));
|
||||
Time("PCRE flat", () => Extractors.PcreScan(new PcreRegex(Extractors.FlatPattern, PcreOptions.Compiled), text));
|
||||
new Regex(Extractors.TechnologyBlockPattern, RegexOptions.Compiled), text));
|
||||
Time("PCRE path aware",
|
||||
() => Extractors.PcreScan(new PcreRegex(Extractors.PathAwarePattern, PcreOptions.Compiled), text));
|
||||
Time("Utf8JsonReader", () => Extractors.Utf8JsonReaderScan(json));
|
||||
|
||||
Reference in New Issue
Block a user