by Merad · 3y ago · 0 comments
On the contrary, the All() method used here (which is part of the .Net standard library) is literally just a loop that evaluates each item in the collection to verify that they all match the predicate function. It'll be able to check hundreds if not thousands of characters in the time that it takes the regex engine to initialize and parse the pattern.
> in anything but the most trivial of patterns (like the one demonstrated here)
I think I see the cause of one of your recurring performance problems.