in reply to 4x faster now!
in thread Syntax Perl Version support $c = () = $a =~ /\./g
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 4x faster now!
by h2 (Beadle) on Jul 19, 2018 at 20:37 UTC | |
by kcott (Archbishop) on Jul 20, 2018 at 10:07 UTC |