Actually, using Regexp::Common w/o qr// should result in the regex being compiled the first time that it is used. Each time it is used after that, a string comparison should be used to see if the regex needs to be recompiled. So it should be only compiled once and only an extra string compare will be done each time it is run.
- tye
In reply to Re^4: Slowdown when using Moose::Util::TypeConstraints with Regexp::Common (recompile)
by tye
in thread Slowdown when using Moose::Util::TypeConstraints with Regexp::Common
by kevbot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |