in reply to Regex: is it faster to be vague?
In general, being as precise as possible is the fastest, as that allows Perl to fail early. Always remember that when benchmarking matching: benchmark failures as well. But that's the general cause. There will be endless examples and cases with additional assumptions where vagueness wins. But those will be exceptions.
|
|---|