in reply to Re^2: Benchmarking "Are all these characters in this sentence?"
in thread Benchmarking "Are all these characters in this sentence?"
Try it this way. I believe it addresses both the real and conceptual errors and runs even faster:
buk3 => sub { 1+index $_[0], chop $_[ 1 ] or return for 1 .. length $_[ 1 ]; 1; },
Who says optimisation can't also result in correct code. Such fun :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Benchmarking "Are all these characters in this sentence?" (Faster still?)
by RMGir (Prior) on Sep 01, 2008 at 11:57 UTC |