My guess is, that your speedup comes from the "optimization" you get by the || operator. If the "test$i" =~ /est/ piece gives a true value (and it does always in your example), no need to evaluate the second part. Thus you "significantly" simplified the regexp.
Bye
PetaMem
In reply to Re: RE performance
by PetaMem
in thread RE performance
by Vennis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |