substr is about 10% slower than vec.
The regex/g is 1/3 to 1/2 the speed of substr. And using IO::Scalar is ten times slower than that!
—John
In reply to Benchmark Results
by John M. Dlugosz
in thread How to process each byte in a binary file?
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |