Only compile $PKG_REGEXP and $VERS_REGEXP once
authorVincent Pit <perl@profvince.com>
Sun, 29 Jul 2012 10:02:35 +0000 (12:02 +0200)
committerVincent Pit <perl@profvince.com>
Sun, 29 Jul 2012 10:02:57 +0000 (12:02 +0200)
commit69859aa0088eb7050955af2e0549aab8029d1064
tree389798c93b31483590cec8e9359583d2e8457e94
parent9922478ce1c1a928a0936fcf7cda1962c2f404da
Only compile $PKG_REGEXP and $VERS_REGEXP once

These regexps are static and so can benefit from the /o modifier.
Profiling shows that this gives a 15% speedup for _parse_fh().
lib/Module/Metadata.pm