G'day h2,
"... and ended up with a 4x (!) speed improvement ..."
You might like to take a look at "perlperf - Perl Performance and Optimization Techniques" which discusses this, amongst other things, and includes benchmarks.
While y/// and s/// are not always interchangeable, when they can provide the same functionality, I've generally found y/// to be measurably faster than s///.
— Ken
In reply to Re: 4x faster now!
by kcott
in thread Syntax Perl Version support $c = () = $a =~ /\./g
by h2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |