Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary call to Match.count (small perf improvement). (#217)
* Remove unnecessary call to Match.count (small perf improvement). Renamed an overload of MatchPattern to IsPatternMatch (ret bool). * Remove unused extra TextContainer class * Switch GetMatchingBoundaries to an IEnumerable This is generally only used to call .Any() on so it is faster to do it this way than construct a list. We don't need to check the size of the matches list, we can just iterate over it and if its 0 its a no-op. * Rename MatchPattern EnumerateMatchingBoundaries Co-authored-by: Michael Scovetta <miscovet@microsoft.com> Co-authored-by: Gabe Stocco <98900+gfs@users.noreply.github.com>
- Loading branch information