File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,11 @@ namespace Benchmark;
1010/// </summary>
1111public partial class ZLinqBenchmarkFilter : IFilter
1212{
13- [ GeneratedRegex ( @"Benchmark.ZLinq.*" , RegexOptions . CultureInvariant ) ]
14- public static partial Regex ZLinqNamespaceRegex ( ) ;
15-
1613 public virtual bool Predicate ( BenchmarkCase benchmarkCase )
1714 {
1815 // Filter by namespace
19- var fullBenchmarkName = FullNameProvider . GetBenchmarkName ( benchmarkCase ) ;
20- var nameWithoutArgs = benchmarkCase . Descriptor . GetFilterName ( ) ;
21-
22- bool isMatched = ZLinqNamespaceRegex ( ) . IsMatch ( fullBenchmarkName )
23- || ZLinqNamespaceRegex ( ) . IsMatch ( nameWithoutArgs ) ;
24-
25- if ( ! isMatched )
16+ var ns = benchmarkCase . Descriptor . Type . Namespace ! ;
17+ if ( ! ns . StartsWith ( "Benchmark.ZLinq" ) )
2618 return false ;
2719
2820 switch ( benchmarkCase . Job . Id )
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ public bool TryGetSpan(out ReadOnlySpan<TSource> span)
9393 return false ;
9494 }
9595
96- public bool TryCopyTo ( Span < TSource > destination , Index offset ) => false ;
96+ public bool TryCopyTo ( scoped Span < TSource > destination , Index offset ) => false ;
9797
9898 public bool TryGetNext ( out TSource current )
9999 {
You can’t perform that action at this time.
0 commit comments